#331EBB#331EBB

#331EBB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.9% C 0.223 H 275.3°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#331EBB
RGBrgb(51, 30, 187)
HSLhsl(248, 72%, 43%)
HSVhsv(248, 84%, 73%)
CMYKcmyk(72.7%, 84%, 0%, 26.7%)
CIE-LABlab(27.35, 55.29, -76.88)
CIE-LCHlch(27.35, 94.70, 305.72°)
OKLaboklab(39.86% 0.0205 -0.2222)
OKLCHoklch(39.86% 0.223 275.3)
XYZxyz(10.7962, 5.2191, 47.4425)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331EBB #A6BB1E
analogous
#1E58BB #331EBB #811EBB
triadic
#331EBB #BB331E #1EBB33
tetradic
#331EBB #BB1E58 #A6BB1E #1EBB81
square
#331EBB #BB1E58 #A6BB1E #1EBB81
split-complementary
#331EBB #BB811E #58BB1E
monochromatic
#160D52 #251686 #331EBB #4E37DF #7C6CE7

Accessibility & contrast

On white

10.27
#331EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#331EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331EBB
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331EBB#FFFFFF#000000##FFFFFF
##331EBB1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #331ebb;
/* rgb */ color: rgb(51, 30, 187);
/* oklch */ color: oklch(39.9% 0.223 275.3);
Tailwind
colors: {
  custom: {
    50: '#8160d1',
    500: '#331ebb',
    950: '#000000',
  },
}
SCSS
$custom: #331ebb;
$custom-light: #8160d1;
$custom-dark: #000000;
JSON
{
  "hex": "#331ebb",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 187
  },
  "hsl": {
    "h": 248.025,
    "s": 72.35,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39857,
    "c": 0.22317,
    "h": 275.3
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#331EBB
secondary
#C0CD67
accent
#EF39D7
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #331EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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