#31288E#31288E

#31288E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.161 H 278.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#31288E
RGBrgb(49, 40, 142)
HSLhsl(245, 56%, 36%)
HSVhsv(245, 72%, 56%)
CMYKcmyk(65.5%, 71.8%, 0%, 44.3%)
CIE-LABlab(24.07, 35.91, -55.02)
CIE-LCHlch(24.07, 65.70, 303.13°)
OKLaboklab(36.08% 0.024 -0.1587)
OKLCHoklch(36.08% 0.161 278.6)
XYZxyz(6.9063, 4.1230, 26.0178)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31288E #858E28
analogous
#28528E #31288E #64288E
triadic
#31288E #8E3128 #288E31
tetradic
#31288E #8E2852 #858E28 #288E64
square
#31288E #8E2852 #858E28 #288E64
split-complementary
#31288E #8E6428 #528E28
monochromatic
#100D2F #211B5E #31288E #4135BE #695FD2

Accessibility & contrast

On white

11.51
#31288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#31288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31288E
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31288E#FFFFFF#000000##FFFFFF
##31288E1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31288e;
/* rgb */ color: rgb(49, 40, 142);
/* oklch */ color: oklch(36.1% 0.161 278.6);
Tailwind
colors: {
  custom: {
    50: '#7663b0',
    500: '#31288e',
    950: '#000000',
  },
}
SCSS
$custom: #31288e;
$custom-light: #7663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31288e",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 245.294,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36081,
    "c": 0.16056,
    "h": 278.6
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#31288E
secondary
#AFB75B
accent
#DF48D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #31288E

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

Preview Lab → · Contrast checker → · Palette generator →

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