#31229A#31229A

#31229A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.182 H 278.0°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#31229A
RGBrgb(49, 34, 154)
HSLhsl(248, 64%, 37%)
HSVhsv(248, 78%, 60%)
CMYKcmyk(68.2%, 77.9%, 0%, 39.6%)
CIE-LABlab(24.09, 43.24, -62.38)
CIE-LCHlch(24.09, 75.90, 304.73°)
OKLaboklab(36.47% 0.0253 -0.1802)
OKLCHoklch(36.47% 0.182 278)
XYZxyz(7.6695, 4.1295, 30.9585)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31229A #8B9A22
analogous
#224F9A #31229A #6D229A
triadic
#31229A #9A3122 #229A31
tetradic
#31229A #9A224F #8B9A22 #229A6D
square
#31229A #9A224F #8B9A22 #229A6D
split-complementary
#31229A #9A6D22 #4F9A22
monochromatic
#110C36 #211768 #31229A #412DCC #6B5BDB

Accessibility & contrast

On white

11.50
#31229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31229A
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31229A#FFFFFF#000000##FFFFFF
##31229A1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31229a;
/* rgb */ color: rgb(49, 34, 154);
/* oklch */ color: oklch(36.5% 0.182 278.0);
Tailwind
colors: {
  custom: {
    50: '#7960b9',
    500: '#31229a',
    950: '#000000',
  },
}
SCSS
$custom: #31229a;
$custom-light: #7960b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31229a",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 247.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36466,
    "c": 0.18198,
    "h": 278
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31229A

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

Preview Lab → · Contrast checker → · Palette generator →

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