#31249A#31249A

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

Color values

HEX#31249A
RGBrgb(49, 36, 154)
HSLhsl(247, 62%, 37%)
HSVhsv(247, 77%, 60%)
CMYKcmyk(68.2%, 76.6%, 0%, 39.6%)
CIE-LABlab(24.47, 42.16, -61.76)
CIE-LCHlch(24.47, 74.78, 304.32°)
OKLaboklab(36.73% 0.0242 -0.1784)
OKLCHoklch(36.73% 0.18 277.7)
XYZxyz(7.7283, 4.2471, 30.9781)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31249A #8D9A24
analogous
#24529A #31249A #6C249A
triadic
#31249A #9A3124 #249A31
tetradic
#31249A #9A2452 #8D9A24 #249A6C
square
#31249A #9A2452 #8D9A24 #249A6C
split-complementary
#31249A #9A6C24 #529A24
monochromatic
#110D37 #211868 #31249A #4130CC #6C5FDA

Accessibility & contrast

On white

11.35
#31249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31249A
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31249A#FFFFFF#000000##FFFFFF
##31249A1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31249a;
/* rgb */ color: rgb(49, 36, 154);
/* oklch */ color: oklch(36.7% 0.180 277.7);
Tailwind
colors: {
  custom: {
    50: '#7961b9',
    500: '#31249a',
    950: '#000000',
  },
}
SCSS
$custom: #31249a;
$custom-light: #7961b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31249a",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 246.61,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36731,
    "c": 0.18005,
    "h": 277.7
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#31249A
secondary
#B4BF5B
accent
#E543D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31249A

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

Preview Lab → · Contrast checker → · Palette generator →

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