#31229E#31229E

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

Color values

HEX#31229E
RGBrgb(49, 34, 158)
HSLhsl(247, 65%, 38%)
HSVhsv(247, 78%, 62%)
CMYKcmyk(69%, 78.5%, 0%, 38%)
CIE-LABlab(24.53, 44.51, -64.12)
CIE-LCHlch(24.53, 78.05, 304.77°)
OKLaboklab(36.9% 0.0243 -0.1853)
OKLCHoklch(36.9% 0.187 277.5)
XYZxyz(8.0082, 4.2649, 32.7423)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31229E #8F9E22
analogous
#22519E #31229E #6F229E
triadic
#31229E #9E3122 #229E31
tetradic
#31229E #9E2251 #8F9E22 #229E6F
square
#31229E #9E2251 #8F9E22 #229E6F
split-complementary
#31229E #9E6F22 #519E22
monochromatic
#120C39 #21176C #31229E #412DD0 #6D5EDC

Accessibility & contrast

On white

11.33
#31229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31229E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31229E#FFFFFF#000000##FFFFFF
##31229E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31229e;
/* rgb */ color: rgb(49, 34, 158);
/* oklch */ color: oklch(36.9% 0.187 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a60bc',
    500: '#31229e',
    950: '#000000',
  },
}
SCSS
$custom: #31229e;
$custom-light: #7a60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31229e",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 247.258,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.18684,
    "h": 277.5
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#31229E
secondary
#B5C15B
accent
#E840D3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31229E

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

Preview Lab → · Contrast checker → · Palette generator →

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