#31249F#31249F

#31249F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.186 H 277.1°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#31249F
RGBrgb(49, 36, 159)
HSLhsl(246, 63%, 38%)
HSVhsv(246, 77%, 62%)
CMYKcmyk(69.2%, 77.4%, 0%, 37.6%)
CIE-LABlab(25.01, 43.77, -63.94)
CIE-LCHlch(25.01, 77.48, 304.39°)
OKLaboklab(37.27% 0.023 -0.1848)
OKLCHoklch(37.27% 0.186 277.1)
XYZxyz(8.1535, 4.4172, 33.2171)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31249F #929F24
analogous
#24559F #31249F #6E249F
triadic
#31249F #9F3124 #249F31
tetradic
#31249F #9F2455 #929F24 #249F6E
square
#31249F #9F2455 #929F24 #249F6E
split-complementary
#31249F #9F6E24 #559F24
monochromatic
#120D3B #22196D #31249F #4130D0 #6F62DB

Accessibility & contrast

On white

11.15
#31249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31249F
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31249F#FFFFFF#000000##FFFFFF
##31249F1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31249f;
/* rgb */ color: rgb(49, 36, 159);
/* oklch */ color: oklch(37.3% 0.186 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a61bd',
    500: '#31249f',
    950: '#000000',
  },
}
SCSS
$custom: #31249f;
$custom-light: #7a61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31249f",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 246.341,
    "s": 63.077,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.18618,
    "h": 277.1
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#31249F
secondary
#B6C15E
accent
#E642D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31249F

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

Preview Lab → · Contrast checker → · Palette generator →

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