#31289F#31289F

#31289F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.182 H 276.5°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#31289F
RGBrgb(49, 40, 159)
HSLhsl(245, 60%, 39%)
HSVhsv(245, 75%, 62%)
CMYKcmyk(69.2%, 74.8%, 0%, 37.6%)
CIE-LABlab(25.78, 41.57, -62.66)
CIE-LCHlch(25.78, 75.19, 303.56°)
OKLaboklab(37.81% 0.0207 -0.1811)
OKLCHoklch(37.81% 0.182 276.5)
XYZxyz(8.2814, 4.6730, 33.2597)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31289F #969F28
analogous
#285B9F #31289F #6D289F
triadic
#31289F #9F3128 #289F31
tetradic
#31289F #9F285B #969F28 #289F6D
square
#31289F #9F285B #969F28 #289F6D
split-complementary
#31289F #9F6D28 #5B9F28
monochromatic
#130F3D #221C6E #31289F #4337CD #7168D9

Accessibility & contrast

On white

10.85
#31289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31289F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31289F#FFFFFF#000000##FFFFFF
##31289F1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31289f;
/* rgb */ color: rgb(49, 40, 159);
/* oklch */ color: oklch(37.8% 0.182 276.5);
Tailwind
colors: {
  custom: {
    50: '#7964bd',
    500: '#31289f',
    950: '#000000',
  },
}
SCSS
$custom: #31289f;
$custom-light: #7964bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31289f",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 244.538,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37813,
    "c": 0.18224,
    "h": 276.5
  },
  "luminance": 0.04674
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31289F

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

Preview Lab → · Contrast checker → · Palette generator →

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