#31248E#31248E

#31248E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.165 H 279.4°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#31248E
RGBrgb(49, 36, 142)
HSLhsl(247, 60%, 35%)
HSVhsv(247, 75%, 56%)
CMYKcmyk(65.5%, 74.6%, 0%, 44.3%)
CIE-LABlab(23.23, 38.26, -56.41)
CIE-LCHlch(23.23, 68.16, 304.15°)
OKLaboklab(35.48% 0.0269 -0.1628)
OKLCHoklch(35.48% 0.165 279.4)
XYZxyz(6.7784, 3.8672, 25.9752)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31248E #818E24
analogous
#244C8E #31248E #66248E
triadic
#31248E #8E3124 #248E31
tetradic
#31248E #8E244C #818E24 #248E66
square
#31248E #8E244C #818E24 #248E66
split-complementary
#31248E #8E6624 #4C8E24
monochromatic
#0F0B2C #20185D #31248E #4230BF #6758D5

Accessibility & contrast

On white

11.84
#31248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#31248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31248E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31248E#FFFFFF#000000##FFFFFF
##31248E1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31248e;
/* rgb */ color: rgb(49, 36, 142);
/* oklch */ color: oklch(35.5% 0.165 279.4);
Tailwind
colors: {
  custom: {
    50: '#7661b0',
    500: '#31248e',
    950: '#000000',
  },
}
SCSS
$custom: #31248e;
$custom-light: #7661b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31248e",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 247.358,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35478,
    "c": 0.16501,
    "h": 279.4
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#31248E
secondary
#ADB955
accent
#E345CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #31248E

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

Preview Lab → · Contrast checker → · Palette generator →

#31248E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva