#31289E#31289E

#31289E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.181 H 276.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#31289E
RGBrgb(49, 40, 158)
HSLhsl(245, 60%, 39%)
HSVhsv(245, 75%, 62%)
CMYKcmyk(69%, 74.7%, 0%, 38%)
CIE-LABlab(25.68, 41.24, -62.22)
CIE-LCHlch(25.68, 74.64, 303.54°)
OKLaboklab(37.71% 0.0209 -0.1798)
OKLCHoklch(37.71% 0.181 276.6)
XYZxyz(8.1950, 4.6384, 32.8046)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31289E #959E28
analogous
#285A9E #31289E #6C289E
triadic
#31289E #9E3128 #289E31
tetradic
#31289E #9E285A #959E28 #289E6C
square
#31289E #9E285A #959E28 #289E6C
split-complementary
#31289E #9E6C28 #5A9E28
monochromatic
#130F3C #221C6D #31289E #4237CC #7068D9

Accessibility & contrast

On white

10.89
#31289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#31289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31289E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31289E#FFFFFF#000000##FFFFFF
##31289E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31289e;
/* rgb */ color: rgb(49, 40, 158);
/* oklch */ color: oklch(37.7% 0.181 276.6);
Tailwind
colors: {
  custom: {
    50: '#7964bc',
    500: '#31289e',
    950: '#000000',
  },
}
SCSS
$custom: #31289e;
$custom-light: #7964bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31289e",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 244.576,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37709,
    "c": 0.18099,
    "h": 276.6
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#31289E
secondary
#B8BF63
accent
#E345D7
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #31289E

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

Preview Lab → · Contrast checker → · Palette generator →

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