#331DB3#331DB3

#331DB3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.8% C 0.215 H 276.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#331DB3
RGBrgb(51, 29, 179)
HSLhsl(249, 72%, 41%)
HSVhsv(249, 84%, 70%)
CMYKcmyk(71.5%, 83.8%, 0%, 29.8%)
CIE-LABlab(26.26, 53.39, -73.92)
CIE-LCHlch(26.26, 91.19, 305.84°)
OKLaboklab(38.84% 0.0233 -0.2136)
OKLCHoklch(38.84% 0.215 276.2)
XYZxyz(9.9386, 4.8363, 43.0488)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331DB3 #9DB31D
analogous
#1D52B3 #331DB3 #7E1DB3
triadic
#331DB3 #B3331D #1DB333
tetradic
#331DB3 #B31D52 #9DB31D #1DB37E
square
#331DB3 #B31D52 #9DB31D #1DB37E
split-complementary
#331DB3 #B37E1D #52B31D
monochromatic
#150C4A #24147E #331DB3 #4930DD #7764E6

Accessibility & contrast

On white

10.67
#331DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#331DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331DB3
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331DB3#FFFFFF#000000##FFFFFF
##331DB31.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #331db3;
/* rgb */ color: rgb(51, 29, 179);
/* oklch */ color: oklch(38.8% 0.215 276.2);
Tailwind
colors: {
  custom: {
    50: '#7f5fcb',
    500: '#331db3',
    950: '#000000',
  },
}
SCSS
$custom: #331db3;
$custom-light: #7f5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#331db3",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 248.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38838,
    "c": 0.21489,
    "h": 276.2
  },
  "luminance": 0.04837
}

Semantic roles & 50–950 ramp

primary
#331DB3
secondary
#BBCB61
accent
#EF39D4
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #331DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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