#31239C#31239C

#31239C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.183 H 277.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#31239C
RGBrgb(49, 35, 156)
HSLhsl(247, 63%, 37%)
HSVhsv(247, 78%, 61%)
CMYKcmyk(68.6%, 77.6%, 0%, 38.8%)
CIE-LABlab(24.50, 43.35, -62.95)
CIE-LCHlch(24.50, 76.43, 304.55°)
OKLaboklab(36.81% 0.0243 -0.1819)
OKLCHoklch(36.81% 0.183 277.6)
XYZxyz(7.8665, 4.2546, 31.8527)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31239C #8E9C23
analogous
#23529C #31239C #6D239C
triadic
#31239C #9C3123 #239C31
tetradic
#31239C #9C2352 #8E9C23 #239C6D
square
#31239C #9C2352 #8E9C23 #239C6D
split-complementary
#31239C #9C6D23 #529C23
monochromatic
#120D38 #21186A #31239C #412ECE #6D5EDB

Accessibility & contrast

On white

11.35
#31239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31239C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31239C#FFFFFF#000000##FFFFFF
##31239C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31239c;
/* rgb */ color: rgb(49, 35, 156);
/* oklch */ color: oklch(36.8% 0.183 277.6);
Tailwind
colors: {
  custom: {
    50: '#7961ba',
    500: '#31239c',
    950: '#000000',
  },
}
SCSS
$custom: #31239c;
$custom-light: #7961ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31239c",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 246.942,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36811,
    "c": 0.18347,
    "h": 277.6
  },
  "luminance": 0.04255
}

Semantic roles & 50–950 ramp

primary
#31239C
secondary
#B4C05B
accent
#E641D3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31239C

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

Preview Lab → · Contrast checker → · Palette generator →

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