#31209C#31209C

#31209C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.186 H 278.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#31209C
RGBrgb(49, 32, 156)
HSLhsl(248, 66%, 37%)
HSVhsv(248, 79%, 61%)
CMYKcmyk(68.6%, 79.5%, 0%, 38.8%)
CIE-LABlab(23.95, 44.90, -63.84)
CIE-LCHlch(23.95, 78.05, 305.12°)
OKLaboklab(36.43% 0.0259 -0.1844)
OKLCHoklch(36.43% 0.186 278)
XYZxyz(7.7819, 4.0856, 31.8245)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31209C #8B9C20
analogous
#204D9C #31209C #6F209C
triadic
#31209C #9C3120 #209C31
tetradic
#31209C #9C204D #8B9C20 #209C6F
square
#31209C #9C204D #8B9C20 #209C6F
split-complementary
#31209C #9C6F20 #4D9C20
monochromatic
#110B36 #211669 #31209C #412ACF #6B59DD

Accessibility & contrast

On white

11.56
#31209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31209C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31209C
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31209C#FFFFFF#000000##FFFFFF
##31209C1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31209c;
/* rgb */ color: rgb(49, 32, 156);
/* oklch */ color: oklch(36.4% 0.186 278.0);
Tailwind
colors: {
  custom: {
    50: '#795fba',
    500: '#31209c',
    950: '#000000',
  },
}
SCSS
$custom: #31209c;
$custom-light: #795fba;
$custom-dark: #000000;
JSON
{
  "hex": "#31209c",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 248.226,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36431,
    "c": 0.18624,
    "h": 278
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#31209C
secondary
#B2C157
accent
#E93FD2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31209C

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

Preview Lab → · Contrast checker → · Palette generator →

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