#31209F#31209F

#31209F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.190 H 277.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#31209F
RGBrgb(49, 32, 159)
HSLhsl(248, 66%, 37%)
HSVhsv(248, 80%, 62%)
CMYKcmyk(69.2%, 79.9%, 0%, 37.6%)
CIE-LABlab(24.29, 45.84, -65.13)
CIE-LCHlch(24.29, 79.64, 305.14°)
OKLaboklab(36.76% 0.025 -0.1882)
OKLCHoklch(36.76% 0.19 277.6)
XYZxyz(8.0391, 4.1885, 33.1790)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31209F #8E9F20
analogous
#204F9F #31209F #70209F
triadic
#31209F #9F3120 #209F31
tetradic
#31209F #9F204F #8E9F20 #209F70
square
#31209F #9F204F #8E9F20 #209F70
split-complementary
#31209F #9F7020 #4F9F20
monochromatic
#120B39 #21166C #31209F #412AD2 #6D5BDE

Accessibility & contrast

On white

11.43
#31209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#31209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31209F
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31209F#FFFFFF#000000##FFFFFF
##31209F1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31209f;
/* rgb */ color: rgb(49, 32, 159);
/* oklch */ color: oklch(36.8% 0.190 277.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fbd',
    500: '#31209f',
    950: '#000000',
  },
}
SCSS
$custom: #31209f;
$custom-light: #7a5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#31209f",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 248.031,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.18984,
    "h": 277.6
  },
  "luminance": 0.04189
}

Semantic roles & 50–950 ramp

primary
#31209F
secondary
#B4C259
accent
#E93ED3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31209F

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

Preview Lab → · Contrast checker → · Palette generator →

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