#31208C#31208C

#31208C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.167 H 280.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#31208C
RGBrgb(49, 32, 140)
HSLhsl(249, 63%, 34%)
HSVhsv(249, 77%, 55%)
CMYKcmyk(65%, 77.1%, 0%, 45.1%)
CIE-LABlab(22.23, 39.86, -56.81)
CIE-LCHlch(22.23, 69.40, 305.05°)
OKLaboklab(34.71% 0.0301 -0.1639)
OKLCHoklch(34.71% 0.167 280.4)
XYZxyz(6.5153, 3.5789, 25.1533)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31208C #7B8C20
analogous
#20458C #31208C #67208C
triadic
#31208C #8C3120 #208C31
tetradic
#31208C #8C2045 #7B8C20 #208C67
square
#31208C #8C2045 #7B8C20 #208C67
split-complementary
#31208C #8C6720 #458C20
monochromatic
#0E0928 #20155A #31208C #422BBE #6550D7

Accessibility & contrast

On white

12.24
#31208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31208C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31208C#FFFFFF#000000##FFFFFF
##31208C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31208c;
/* rgb */ color: rgb(49, 32, 140);
/* oklch */ color: oklch(34.7% 0.167 280.4);
Tailwind
colors: {
  custom: {
    50: '#765eaf',
    500: '#31208c',
    950: '#000000',
  },
}
SCSS
$custom: #31208c;
$custom-light: #765eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31208c",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 249.444,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34709,
    "c": 0.16668,
    "h": 280.4
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#31208C
secondary
#A9BA4E
accent
#E642CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #31208C

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

Preview Lab → · Contrast checker → · Palette generator →

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