#31229D#31229D

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

Color values

HEX#31229D
RGBrgb(49, 34, 157)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 62%)
CMYKcmyk(68.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(24.42, 44.19, -63.68)
CIE-LCHlch(24.42, 77.51, 304.76°)
OKLaboklab(36.79% 0.0245 -0.184)
OKLCHoklch(36.79% 0.186 277.6)
XYZxyz(7.9225, 4.2306, 32.2908)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31229D #8E9D22
analogous
#22519D #31229D #6E229D
triadic
#31229D #9D3122 #229D31
tetradic
#31229D #9D2251 #8E9D22 #229D6E
square
#31229D #9D2251 #8E9D22 #229D6E
split-complementary
#31229D #9D6E22 #519D22
monochromatic
#120C38 #21176B #31229D #412DCF #6D5DDC

Accessibility & contrast

On white

11.37
#31229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31229D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31229D#FFFFFF#000000##FFFFFF
##31229D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31229d;
/* rgb */ color: rgb(49, 34, 157);
/* oklch */ color: oklch(36.8% 0.186 277.6);
Tailwind
colors: {
  custom: {
    50: '#7960bb',
    500: '#31229d',
    950: '#000000',
  },
}
SCSS
$custom: #31229d;
$custom-light: #7960bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31229d",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 247.317,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3679,
    "c": 0.18563,
    "h": 277.6
  },
  "luminance": 0.04231
}

Semantic roles & 50–950 ramp

primary
#31229D
secondary
#B4C15A
accent
#E740D3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31229D

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

Preview Lab → · Contrast checker → · Palette generator →

#31229D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva