#31239E#31239E

#31239E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.186 H 277.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#31239E
RGBrgb(49, 35, 158)
HSLhsl(247, 64%, 38%)
HSVhsv(247, 78%, 62%)
CMYKcmyk(69%, 77.8%, 0%, 38%)
CIE-LABlab(24.71, 43.98, -63.81)
CIE-LCHlch(24.71, 77.50, 304.58°)
OKLaboklab(37.03% 0.0238 -0.1844)
OKLCHoklch(37.03% 0.186 277.3)
XYZxyz(8.0372, 4.3229, 32.7520)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31239E #909E23
analogous
#23539E #31239E #6E239E
triadic
#31239E #9E3123 #239E31
tetradic
#31239E #9E2353 #909E23 #239E6E
square
#31239E #9E2353 #909E23 #239E6E
split-complementary
#31239E #9E6E23 #539E23
monochromatic
#120D3A #21186C #31239E #412ED0 #6E60DC

Accessibility & contrast

On white

11.26
#31239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31239E
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31239E#FFFFFF#000000##FFFFFF
##31239E1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31239e;
/* rgb */ color: rgb(49, 35, 158);
/* oklch */ color: oklch(37.0% 0.186 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a61bc',
    500: '#31239e',
    950: '#000000',
  },
}
SCSS
$custom: #31239e;
$custom-light: #7a61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31239e",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 246.829,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37027,
    "c": 0.18591,
    "h": 277.3
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#31239E
secondary
#B5C15C
accent
#E741D4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31239E

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

Preview Lab → · Contrast checker → · Palette generator →

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