#331D64#331D64

#331D64 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.118 H 292.2°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#331D64
RGBrgb(51, 29, 100)
HSLhsl(259, 55%, 25%)
HSVhsv(259, 71%, 39%)
CMYKcmyk(49%, 71%, 0%, 60.8%)
CIE-LABlab(17.93, 29.17, -38.24)
CIE-LCHlch(17.93, 48.09, 307.33°)
OKLaboklab(30.52% 0.0446 -0.1094)
OKLCHoklch(30.52% 0.118 292.2)
XYZxyz(4.1042, 2.5025, 12.3209)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D64 #4E641D
analogous
#1D2A64 #331D64 #571D64
triadic
#331D64 #64331D #1D6433
tetradic
#331D64 #641D2A #4E641D #1D6457
square
#331D64 #641D2A #4E641D #1D6457
split-complementary
#331D64 #64571D #2A641D
monochromatic
#0C0718 #1B0F35 #331D64 #4B2B93 #6339C3

Accessibility & contrast

On white

13.99
#331D64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331D64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D64
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D64#FFFFFF#000000##FFFFFF
##331D641.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#242E3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331d64;
/* rgb */ color: rgb(51, 29, 100);
/* oklch */ color: oklch(30.5% 0.118 292.2);
Tailwind
colors: {
  custom: {
    50: '#705a91',
    500: '#331d64',
    950: '#000000',
  },
}
SCSS
$custom: #331d64;
$custom-light: #705a91;
$custom-dark: #000000;
JSON
{
  "hex": "#331d64",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 100
  },
  "hsl": {
    "h": 258.592,
    "s": 55.039,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30518,
    "c": 0.11818,
    "h": 292.2
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#331D64
secondary
#7F9944
accent
#DE49B0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #331D64

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

Preview Lab → · Contrast checker → · Palette generator →

#331D64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva