#31229C#31229C

#31229C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.184 H 277.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#31229C
RGBrgb(49, 34, 156)
HSLhsl(247, 64%, 37%)
HSVhsv(247, 78%, 61%)
CMYKcmyk(68.6%, 78.2%, 0%, 38.8%)
CIE-LABlab(24.31, 43.87, -63.25)
CIE-LCHlch(24.31, 76.98, 304.75°)
OKLaboklab(36.68% 0.0248 -0.1827)
OKLCHoklch(36.68% 0.184 277.7)
XYZxyz(7.8375, 4.1966, 31.8430)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31229C #8D9C22
analogous
#22509C #31229C #6E229C
triadic
#31229C #9C3122 #229C31
tetradic
#31229C #9C2250 #8D9C22 #229C6E
square
#31229C #9C2250 #8D9C22 #229C6E
split-complementary
#31229C #9C6E22 #509C22
monochromatic
#110C38 #21176A #31229C #412DCE #6C5DDC

Accessibility & contrast

On white

11.42
#31229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#31229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31229C
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31229C#FFFFFF#000000##FFFFFF
##31229C1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31229c;
/* rgb */ color: rgb(49, 34, 156);
/* oklch */ color: oklch(36.7% 0.184 277.7);
Tailwind
colors: {
  custom: {
    50: '#7960ba',
    500: '#31229c',
    950: '#000000',
  },
}
SCSS
$custom: #31229c;
$custom-light: #7960ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31229c",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 247.377,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36682,
    "c": 0.18442,
    "h": 277.7
  },
  "luminance": 0.04197
}

Semantic roles & 50–950 ramp

primary
#31229C
secondary
#B4C05A
accent
#E741D3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31229C

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

Preview Lab → · Contrast checker → · Palette generator →

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