#31288B#31288B

#31288B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.157 H 279.0°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#31288B
RGBrgb(49, 40, 139)
HSLhsl(245, 55%, 35%)
HSVhsv(245, 71%, 55%)
CMYKcmyk(64.7%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.78, 34.90, -53.63)
CIE-LCHlch(23.78, 63.98, 303.06°)
OKLaboklab(35.78% 0.0245 -0.1547)
OKLCHoklch(35.78% 0.157 279)
XYZxyz(6.6841, 4.0341, 24.8475)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31288B #828B28
analogous
#28508B #31288B #63288B
triadic
#31288B #8B3128 #288B31
tetradic
#31288B #8B2850 #828B28 #288B63
square
#31288B #8B2850 #828B28 #288B63
split-complementary
#31288B #8B6328 #508B28
monochromatic
#0F0D2C #201A5B #31288B #4236BB #685DD0

Accessibility & contrast

On white

11.62
#31288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#31288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31288B
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31288B#FFFFFF#000000##FFFFFF
##31288B1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31288b;
/* rgb */ color: rgb(49, 40, 139);
/* oklch */ color: oklch(35.8% 0.157 279.0);
Tailwind
colors: {
  custom: {
    50: '#7563ae',
    500: '#31288b',
    950: '#000000',
  },
}
SCSS
$custom: #31288b;
$custom-light: #7563ae;
$custom-dark: #000000;
JSON
{
  "hex": "#31288b",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 245.455,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35785,
    "c": 0.15661,
    "h": 279
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#31288B
secondary
#ADB659
accent
#DF49D1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #31288B

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

Preview Lab → · Contrast checker → · Palette generator →

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