#31389B#31389B

#31389B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.159 H 273.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#31389B
RGBrgb(49, 56, 155)
HSLhsl(236, 52%, 40%)
HSVhsv(236, 68%, 61%)
CMYKcmyk(68.4%, 63.9%, 0%, 39.2%)
CIE-LABlab(29.02, 30.36, -54.90)
CIE-LCHlch(29.02, 62.74, 298.94°)
OKLaboklab(40.04% 0.0101 -0.1584)
OKLCHoklch(40.04% 0.159 273.6)
XYZxyz(8.5952, 5.8471, 31.6796)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31389B #9B9431
analogous
#316D9B #31389B #5F319B
triadic
#31389B #9B3138 #389B31
tetradic
#31389B #9B316D #9B9431 #319B5F
square
#31389B #9B316D #9B9431 #319B5F
split-complementary
#31389B #9B5F31 #6D9B31
monochromatic
#14163E #22276D #31389B #454DC4 #737AD3

Accessibility & contrast

On white

9.68
#31389B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#31389B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31389B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31389B#FFFFFF#000000##FFFFFF
##31389B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31389b;
/* rgb */ color: rgb(49, 56, 155);
/* oklch */ color: oklch(40.0% 0.159 273.6);
Tailwind
colors: {
  custom: {
    50: '#776eb9',
    500: '#31389b',
    950: '#000000',
  },
}
SCSS
$custom: #31389b;
$custom-light: #776eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31389b",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 155
  },
  "hsl": {
    "h": 236.038,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.40037,
    "c": 0.15868,
    "h": 273.6
  },
  "luminance": 0.05848
}

Semantic roles & 50–950 ramp

primary
#31389B
secondary
#BBB66D
accent
#D24CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31389B

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

Preview Lab → · Contrast checker → · Palette generator →

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