#31389F#31389F

#31389F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.164 H 273.4°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#31389F
RGBrgb(49, 56, 159)
HSLhsl(236, 53%, 41%)
HSVhsv(236, 69%, 62%)
CMYKcmyk(69.2%, 64.8%, 0%, 37.6%)
CIE-LABlab(29.37, 31.80, -56.76)
CIE-LCHlch(29.37, 65.06, 299.26°)
OKLaboklab(40.4% 0.0098 -0.1638)
OKLCHoklch(40.4% 0.164 273.4)
XYZxyz(8.9367, 5.9837, 33.4782)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31389F #9F9831
analogous
#316F9F #31389F #61319F
triadic
#31389F #9F3138 #389F31
tetradic
#31389F #9F316F #9F9831 #319F61
square
#31389F #9F316F #9F9831 #319F61
split-complementary
#31389F #9F6131 #6F9F31
monochromatic
#141741 #232870 #31389F #474FC6 #767CD5

Accessibility & contrast

On white

9.56
#31389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#31389F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31389F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31389F#FFFFFF#000000##FFFFFF
##31389F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31389f;
/* rgb */ color: rgb(49, 56, 159);
/* oklch */ color: oklch(40.4% 0.164 273.4);
Tailwind
colors: {
  custom: {
    50: '#786fbc',
    500: '#31389f',
    950: '#000000',
  },
}
SCSS
$custom: #31389f;
$custom-light: #786fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31389f",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 236.182,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.404,
    "c": 0.16413,
    "h": 273.4
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31389F

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

Preview Lab → · Contrast checker → · Palette generator →

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