#31249D#31249D

#31249D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.184 H 277.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#31249D
RGBrgb(49, 36, 157)
HSLhsl(246, 63%, 38%)
HSVhsv(246, 77%, 62%)
CMYKcmyk(68.8%, 77.1%, 0%, 38.4%)
CIE-LABlab(24.79, 43.13, -63.07)
CIE-LCHlch(24.79, 76.41, 304.36°)
OKLaboklab(37.05% 0.0235 -0.1822)
OKLCHoklch(37.05% 0.184 277.3)
XYZxyz(7.9813, 4.3483, 32.3105)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31249D #909D24
analogous
#24549D #31249D #6D249D
triadic
#31249D #9D3124 #249D31
tetradic
#31249D #9D2454 #909D24 #249D6D
square
#31249D #9D2454 #909D24 #249D6D
split-complementary
#31249D #9D6D24 #549D24
monochromatic
#120D39 #21196B #31249D #412FCF #6E61DB

Accessibility & contrast

On white

11.23
#31249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31249D
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31249D#FFFFFF#000000##FFFFFF
##31249D1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31249d;
/* rgb */ color: rgb(49, 36, 157);
/* oklch */ color: oklch(37.1% 0.184 277.3);
Tailwind
colors: {
  custom: {
    50: '#7961bb',
    500: '#31249d',
    950: '#000000',
  },
}
SCSS
$custom: #31249d;
$custom-light: #7961bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31249d",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 246.446,
    "s": 62.694,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37051,
    "c": 0.18374,
    "h": 277.3
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#31249D
secondary
#B5C05D
accent
#E642D4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31249D

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

Preview Lab → · Contrast checker → · Palette generator →

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