#331658#331658

#331658 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.112 H 299.2°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#331658
RGBrgb(51, 22, 88)
HSLhsl(266, 60%, 22%)
HSVhsv(266, 75%, 35%)
CMYKcmyk(42%, 75%, 0%, 65.5%)
CIE-LABlab(15.39, 29.64, -34.37)
CIE-LCHlch(15.39, 45.39, 310.78°)
OKLaboklab(28.37% 0.0548 -0.0981)
OKLCHoklch(28.37% 0.112 299.2)
XYZxyz(3.4132, 1.9822, 9.4334)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331658 #3B5816
analogous
#161A58 #331658 #541658
triadic
#331658 #583316 #165833
tetradic
#331658 #58161A #3B5816 #165854
square
#331658 #58161A #3B5816 #165854
split-complementary
#331658 #585416 #1A5816
monochromatic
#0E0618 #170A27 #331658 #4F2289 #6C2EBA

Accessibility & contrast

On white

15.04
#331658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331658
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331658#FFFFFF#000000##FFFFFF
##3316581.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#2A2635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331658;
/* rgb */ color: rgb(51, 22, 88);
/* oklch */ color: oklch(28.4% 0.112 299.2);
Tailwind
colors: {
  custom: {
    50: '#6f5688',
    500: '#331658',
    950: '#000000',
  },
}
SCSS
$custom: #331658;
$custom-light: #6f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#331658",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 266.364,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28373,
    "c": 0.11231,
    "h": 299.2
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#331658
secondary
#6A8F3B
accent
#E3459E
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331658

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#331658 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva