#31249B#31249B

#31249B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.181 H 277.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#31249B
RGBrgb(49, 36, 155)
HSLhsl(247, 62%, 37%)
HSVhsv(247, 77%, 61%)
CMYKcmyk(68.4%, 76.8%, 0%, 39.2%)
CIE-LABlab(24.58, 42.49, -62.20)
CIE-LCHlch(24.58, 75.32, 304.34°)
OKLaboklab(36.84% 0.0239 -0.1797)
OKLCHoklch(36.84% 0.181 277.6)
XYZxyz(7.8120, 4.2806, 31.4185)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31249B #8E9B24
analogous
#24529B #31249B #6D249B
triadic
#31249B #9B3124 #249B31
tetradic
#31249B #9B2452 #8E9B24 #249B6D
square
#31249B #9B2452 #8E9B24 #249B6D
split-complementary
#31249B #9B6D24 #529B24
monochromatic
#120D38 #211869 #31249B #4130CD #6D5FDA

Accessibility & contrast

On white

11.31
#31249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31249B
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31249B#FFFFFF#000000##FFFFFF
##31249B1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31249b;
/* rgb */ color: rgb(49, 36, 155);
/* oklch */ color: oklch(36.8% 0.181 277.6);
Tailwind
colors: {
  custom: {
    50: '#7961ba',
    500: '#31249b',
    950: '#000000',
  },
}
SCSS
$custom: #31249b;
$custom-light: #7961ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31249b",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 246.555,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36837,
    "c": 0.18129,
    "h": 277.6
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#31249B
secondary
#B4BF5C
accent
#E542D4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31249B

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

Preview Lab → · Contrast checker → · Palette generator →

#31249B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva