#31389E#31389E

#31389E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.163 H 273.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#31389E
RGBrgb(49, 56, 158)
HSLhsl(236, 53%, 41%)
HSVhsv(236, 69%, 62%)
CMYKcmyk(69%, 64.6%, 0%, 38%)
CIE-LABlab(29.28, 31.44, -56.30)
CIE-LCHlch(29.28, 64.48, 299.18°)
OKLaboklab(40.31% 0.0099 -0.1625)
OKLCHoklch(40.31% 0.163 273.5)
XYZxyz(8.8503, 5.9491, 33.0230)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31389E #9E9731
analogous
#316E9E #31389E #60319E
triadic
#31389E #9E3138 #389E31
tetradic
#31389E #9E316E #9E9731 #319E60
square
#31389E #9E316E #9E9731 #319E60
split-complementary
#31389E #9E6031 #6E9E31
monochromatic
#141741 #23276F #31389E #464FC6 #757BD4

Accessibility & contrast

On white

9.59
#31389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#31389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31389E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31389E#FFFFFF#000000##FFFFFF
##31389E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31389e;
/* rgb */ color: rgb(49, 56, 158);
/* oklch */ color: oklch(40.3% 0.163 273.5);
Tailwind
colors: {
  custom: {
    50: '#786ebc',
    500: '#31389e',
    950: '#000000',
  },
}
SCSS
$custom: #31389e;
$custom-light: #786ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#31389e",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 236.147,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40309,
    "c": 0.16277,
    "h": 273.5
  },
  "luminance": 0.0595
}

Semantic roles & 50–950 ramp

primary
#31389E
secondary
#BCB76E
accent
#D34CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31389E

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

Preview Lab → · Contrast checker → · Palette generator →

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