#31239B#31239B

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

Color values

HEX#31239B
RGBrgb(49, 35, 155)
HSLhsl(247, 63%, 37%)
HSVhsv(247, 77%, 61%)
CMYKcmyk(68.4%, 77.4%, 0%, 39.2%)
CIE-LABlab(24.39, 43.03, -62.51)
CIE-LCHlch(24.39, 75.89, 304.54°)
OKLaboklab(36.7% 0.0245 -0.1806)
OKLCHoklch(36.7% 0.182 277.7)
XYZxyz(7.7821, 4.2209, 31.4086)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31239B #8D9B23
analogous
#23519B #31239B #6D239B
triadic
#31239B #9B3123 #239B31
tetradic
#31239B #9B2351 #8D9B23 #239B6D
square
#31239B #9B2351 #8D9B23 #239B6D
split-complementary
#31239B #9B6D23 #519B23
monochromatic
#110C37 #211869 #31239B #412ECD #6C5EDB

Accessibility & contrast

On white

11.39
#31239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#31239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31239B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31239B#FFFFFF#000000##FFFFFF
##31239B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31239b;
/* rgb */ color: rgb(49, 35, 155);
/* oklch */ color: oklch(36.7% 0.182 277.7);
Tailwind
colors: {
  custom: {
    50: '#7961ba',
    500: '#31239b',
    950: '#000000',
  },
}
SCSS
$custom: #31239b;
$custom-light: #7961ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31239b",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 247,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36704,
    "c": 0.18225,
    "h": 277.7
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#31239B
secondary
#B4BF5A
accent
#E642D3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31239B

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

Preview Lab → · Contrast checker → · Palette generator →

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