#31249E#31249E

#31249E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.185 H 277.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#31249E
RGBrgb(49, 36, 158)
HSLhsl(246, 63%, 38%)
HSVhsv(246, 77%, 62%)
CMYKcmyk(69%, 77.2%, 0%, 38%)
CIE-LABlab(24.90, 43.45, -63.51)
CIE-LCHlch(24.90, 76.95, 304.38°)
OKLaboklab(37.16% 0.0232 -0.1835)
OKLCHoklch(37.16% 0.185 277.2)
XYZxyz(8.0670, 4.3826, 32.7619)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31249E #919E24
analogous
#24549E #31249E #6E249E
triadic
#31249E #9E3124 #249E31
tetradic
#31249E #9E2454 #919E24 #249E6E
square
#31249E #9E2454 #919E24 #249E6E
split-complementary
#31249E #9E6E24 #549E24
monochromatic
#120D3A #22196C #31249E #412FD0 #6E61DB

Accessibility & contrast

On white

11.19
#31249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31249E
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31249E#FFFFFF#000000##FFFFFF
##31249E1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31249e;
/* rgb */ color: rgb(49, 36, 158);
/* oklch */ color: oklch(37.2% 0.185 277.2);
Tailwind
colors: {
  custom: {
    50: '#7961bc',
    500: '#31249e',
    950: '#000000',
  },
}
SCSS
$custom: #31249e;
$custom-light: #7961bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31249e",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 246.393,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37158,
    "c": 0.18496,
    "h": 277.2
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#31249E
secondary
#B6C05E
accent
#E642D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31249E

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

Preview Lab → · Contrast checker → · Palette generator →

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