#331AD2#331AD2

#331AD2 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 42.2% C 0.251 H 273.4°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#331AD2
RGBrgb(51, 26, 210)
HSLhsl(248, 78%, 46%)
HSVhsv(248, 88%, 82%)
CMYKcmyk(75.7%, 87.6%, 0%, 17.6%)
CIE-LABlab(29.65, 63.23, -86.56)
CIE-LCHlch(29.65, 107.19, 306.15°)
OKLaboklab(42.22% 0.0147 -0.2502)
OKLCHoklch(42.22% 0.251 273.4)
XYZxyz(13.3636, 6.0943, 61.4323)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331AD2 #B9D21A
analogous
#1A5DD2 #331AD2 #8F1AD2
triadic
#331AD2 #D2331A #1AD233
tetradic
#331AD2 #D21A5D #B9D21A #1AD28F
square
#331AD2 #D21A5D #B9D21A #1AD28F
split-complementary
#331AD2 #D28F1A #5DD21A
monochromatic
#190D65 #26139C #331AD2 #5842E8 #8878EE

Accessibility & contrast

On white

9.46
#331AD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#331AD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331AD2
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331AD2#FFFFFF#000000##FFFFFF
##331AD21.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ED7
Deuteranopia (green-blind)
#003DCF
Tritanopia (blue-blind)
#005A7C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #331ad2;
/* rgb */ color: rgb(51, 26, 210);
/* oklch */ color: oklch(42.2% 0.251 273.4);
Tailwind
colors: {
  custom: {
    50: '#8761e2',
    500: '#331ad2',
    950: '#000000',
  },
}
SCSS
$custom: #331ad2;
$custom-light: #8761e2;
$custom-dark: #000000;
JSON
{
  "hex": "#331ad2",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 210
  },
  "hsl": {
    "h": 248.152,
    "s": 77.966,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42224,
    "c": 0.25059,
    "h": 273.4
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#331AD2
secondary
#C8D672
accent
#F433DA
background
#F9F6FE
surface
#F2EBFC
border
#CCC6D5
text
#0E0516
muted
#7E7A84

Preview Lab

Preview with #331AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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