#331E9E#331E9E

#331E9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.190 H 278.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#331E9E
RGBrgb(51, 30, 158)
HSLhsl(250, 68%, 37%)
HSVhsv(250, 81%, 62%)
CMYKcmyk(67.7%, 81%, 0%, 38%)
CIE-LABlab(24.00, 46.70, -64.98)
CIE-LCHlch(24.00, 80.02, 305.70°)
OKLaboklab(36.57% 0.0292 -0.1877)
OKLCHoklch(36.57% 0.19 278.8)
XYZxyz(7.9991, 4.1003, 32.7110)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E9E #899E1E
analogous
#1E499E #331E9E #731E9E
triadic
#331E9E #9E331E #1E9E33
tetradic
#331E9E #9E1E49 #899E1E #1E9E73
square
#331E9E #9E1E49 #899E1E #1E9E73
split-complementary
#331E9E #9E731E #499E1E
monochromatic
#120A37 #22146B #331E9E #4428D1 #6E57DF

Accessibility & contrast

On white

11.54
#331E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#331E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E9E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E9E#FFFFFF#000000##FFFFFF
##331E9E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #331e9e;
/* rgb */ color: rgb(51, 30, 158);
/* oklch */ color: oklch(36.6% 0.190 278.8);
Tailwind
colors: {
  custom: {
    50: '#7b5ebc',
    500: '#331e9e',
    950: '#000000',
  },
}
SCSS
$custom: #331e9e;
$custom-light: #7b5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#331e9e",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 249.844,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.18994,
    "h": 278.8
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#331E9E
secondary
#B1C355
accent
#EB3DCE
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #331E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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