#31208F#31208F

#31208F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.170 H 279.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#31208F
RGBrgb(49, 32, 143)
HSLhsl(249, 63%, 34%)
HSVhsv(249, 78%, 56%)
CMYKcmyk(65.7%, 77.6%, 0%, 43.9%)
CIE-LABlab(22.54, 40.81, -58.15)
CIE-LCHlch(22.54, 71.05, 305.06°)
OKLaboklab(35.03% 0.0293 -0.1679)
OKLCHoklch(35.03% 0.17 279.9)
XYZxyz(6.7395, 3.6686, 26.3342)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31208F #7E8F20
analogous
#20478F #31208F #69208F
triadic
#31208F #8F3120 #208F31
tetradic
#31208F #8F2047 #7E8F20 #208F69
square
#31208F #8F2047 #7E8F20 #208F69
split-complementary
#31208F #8F6920 #478F20
monochromatic
#0F0A2B #20155D #31208F #422BC1 #6651D8

Accessibility & contrast

On white

12.11
#31208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#31208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31208F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31208F#FFFFFF#000000##FFFFFF
##31208F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31208f;
/* rgb */ color: rgb(49, 32, 143);
/* oklch */ color: oklch(35.0% 0.170 279.9);
Tailwind
colors: {
  custom: {
    50: '#775eb1',
    500: '#31208f',
    950: '#000000',
  },
}
SCSS
$custom: #31208f;
$custom-light: #775eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#31208f",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 249.189,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.1704,
    "h": 279.9
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#31208F
secondary
#ABBB4F
accent
#E641CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #31208F

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

Preview Lab → · Contrast checker → · Palette generator →

#31208F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva