#31249C#31249C

#31249C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.183 H 277.5°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#31249C
RGBrgb(49, 36, 156)
HSLhsl(247, 63%, 38%)
HSVhsv(247, 77%, 61%)
CMYKcmyk(68.6%, 76.9%, 0%, 38.8%)
CIE-LABlab(24.68, 42.81, -62.64)
CIE-LCHlch(24.68, 75.87, 304.35°)
OKLaboklab(36.94% 0.0237 -0.181)
OKLCHoklch(36.94% 0.183 277.5)
XYZxyz(7.8963, 4.3143, 31.8627)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31249C #8F9C24
analogous
#24539C #31249C #6D249C
triadic
#31249C #9C3124 #249C31
tetradic
#31249C #9C2453 #8F9C24 #249C6D
square
#31249C #9C2453 #8F9C24 #249C6D
split-complementary
#31249C #9C6D24 #539C24
monochromatic
#120D39 #21196A #31249C #412FCE #6D60DA

Accessibility & contrast

On white

11.27
#31249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31249C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31249C#FFFFFF#000000##FFFFFF
##31249C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31249c;
/* rgb */ color: rgb(49, 36, 156);
/* oklch */ color: oklch(36.9% 0.183 277.5);
Tailwind
colors: {
  custom: {
    50: '#7961ba',
    500: '#31249c',
    950: '#000000',
  },
}
SCSS
$custom: #31249c;
$custom-light: #7961ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31249c",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 246.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36944,
    "c": 0.18251,
    "h": 277.5
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#31249C
secondary
#B5BF5C
accent
#E642D4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31249C

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

Preview Lab → · Contrast checker → · Palette generator →

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