#331659#331659

#331659 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.114 H 298.7°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#331659
RGBrgb(51, 22, 89)
HSLhsl(266, 60%, 22%)
HSVhsv(266, 75%, 35%)
CMYKcmyk(42.7%, 75.3%, 0%, 65.1%)
CIE-LABlab(15.48, 29.93, -34.90)
CIE-LCHlch(15.48, 45.98, 310.62°)
OKLaboklab(28.46% 0.0546 -0.0996)
OKLCHoklch(28.46% 0.114 298.7)
XYZxyz(3.4549, 1.9988, 9.6531)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331659 #3C5916
analogous
#161B59 #331659 #551659
triadic
#331659 #593316 #165933
tetradic
#331659 #59161B #3C5916 #165955
square
#331659 #59161B #3C5916 #165955
split-complementary
#331659 #595516 #1B5916
monochromatic
#0E0619 #170A28 #331659 #4F228A #6B2EBB

Accessibility & contrast

On white

15.00
#331659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331659
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331659#FFFFFF#000000##FFFFFF
##3316591.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#2A2635
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331659;
/* rgb */ color: rgb(51, 22, 89);
/* oklch */ color: oklch(28.5% 0.114 298.7);
Tailwind
colors: {
  custom: {
    50: '#6f5688',
    500: '#331659',
    950: '#000000',
  },
}
SCSS
$custom: #331659;
$custom-light: #6f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#331659",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 265.97,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28463,
    "c": 0.11358,
    "h": 298.7
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#331659
secondary
#6B903B
accent
#E4449F
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331659

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

Preview Lab → · Contrast checker → · Palette generator →

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