#31229B#31229B

#31229B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.183 H 277.9°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#31229B
RGBrgb(49, 34, 155)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 61%)
CMYKcmyk(68.4%, 78.1%, 0%, 39.2%)
CIE-LABlab(24.20, 43.56, -62.82)
CIE-LCHlch(24.20, 76.44, 304.74°)
OKLaboklab(36.57% 0.0251 -0.1815)
OKLCHoklch(36.57% 0.183 277.9)
XYZxyz(7.7531, 4.1629, 31.3989)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31229B #8C9B22
analogous
#22509B #31229B #6E229B
triadic
#31229B #9B3122 #229B31
tetradic
#31229B #9B2250 #8C9B22 #229B6E
square
#31229B #9B2250 #8C9B22 #229B6E
split-complementary
#31229B #9B6E22 #509B22
monochromatic
#110C37 #211769 #31229B #412DCD #6C5CDB

Accessibility & contrast

On white

11.46
#31229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31229B
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31229B#FFFFFF#000000##FFFFFF
##31229B1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003499
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31229b;
/* rgb */ color: rgb(49, 34, 155);
/* oklch */ color: oklch(36.6% 0.183 277.9);
Tailwind
colors: {
  custom: {
    50: '#7960ba',
    500: '#31229b',
    950: '#000000',
  },
}
SCSS
$custom: #31229b;
$custom-light: #7960ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31229b",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 247.438,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36574,
    "c": 0.1832,
    "h": 277.9
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#31229B
secondary
#B3C059
accent
#E741D2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31229B

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

Preview Lab → · Contrast checker → · Palette generator →

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