#31239F#31239F

#31239F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.187 H 277.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#31239F
RGBrgb(49, 35, 159)
HSLhsl(247, 64%, 38%)
HSVhsv(247, 78%, 62%)
CMYKcmyk(69.2%, 78%, 0%, 37.6%)
CIE-LABlab(24.82, 44.30, -64.24)
CIE-LCHlch(24.82, 78.04, 304.59°)
OKLaboklab(37.14% 0.0235 -0.1856)
OKLCHoklch(37.14% 0.187 277.2)
XYZxyz(8.1236, 4.3575, 33.2071)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31239F #919F23
analogous
#23539F #31239F #6F239F
triadic
#31239F #9F3123 #239F31
tetradic
#31239F #9F2353 #919F23 #239F6F
square
#31239F #9F2353 #919F23 #239F6F
split-complementary
#31239F #9F6F23 #539F23
monochromatic
#120D3B #22186D #31239F #412ED1 #6E60DC

Accessibility & contrast

On white

11.22
#31239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31239F
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31239F#FFFFFF#000000##FFFFFF
##31239F1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31239f;
/* rgb */ color: rgb(49, 35, 159);
/* oklch */ color: oklch(37.1% 0.187 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a61bd',
    500: '#31239f',
    950: '#000000',
  },
}
SCSS
$custom: #31239f;
$custom-light: #7a61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31239f",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 246.774,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37135,
    "c": 0.18712,
    "h": 277.2
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31239F

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

Preview Lab → · Contrast checker → · Palette generator →

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