#31239A#31239A

#31239A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.181 H 277.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#31239A
RGBrgb(49, 35, 154)
HSLhsl(247, 63%, 37%)
HSVhsv(247, 77%, 60%)
CMYKcmyk(68.2%, 77.3%, 0%, 39.6%)
CIE-LABlab(24.28, 42.71, -62.08)
CIE-LCHlch(24.28, 75.35, 304.53°)
OKLaboklab(36.6% 0.0248 -0.1793)
OKLCHoklch(36.6% 0.181 277.9)
XYZxyz(7.6985, 4.1875, 30.9681)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31239A #8C9A23
analogous
#23519A #31239A #6D239A
triadic
#31239A #9A3123 #239A31
tetradic
#31239A #9A2351 #8C9A23 #239A6D
square
#31239A #9A2351 #8C9A23 #239A6D
split-complementary
#31239A #9A6D23 #519A23
monochromatic
#110C36 #211868 #31239A #412ECC #6C5DDA

Accessibility & contrast

On white

11.43
#31239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31239A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31239A#FFFFFF#000000##FFFFFF
##31239A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31239a;
/* rgb */ color: rgb(49, 35, 154);
/* oklch */ color: oklch(36.6% 0.181 277.9);
Tailwind
colors: {
  custom: {
    50: '#7961b9',
    500: '#31239a',
    950: '#000000',
  },
}
SCSS
$custom: #31239a;
$custom-light: #7961b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31239a",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 247.059,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36597,
    "c": 0.18103,
    "h": 277.9
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#31239A
secondary
#B3BF5A
accent
#E642D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31239A

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

Preview Lab → · Contrast checker → · Palette generator →

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