#31389C#31389C

#31389C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.160 H 273.6°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#31389C
RGBrgb(49, 56, 156)
HSLhsl(236, 52%, 40%)
HSVhsv(236, 69%, 61%)
CMYKcmyk(68.6%, 64.1%, 0%, 38.8%)
CIE-LABlab(29.11, 30.72, -55.37)
CIE-LCHlch(29.11, 63.32, 299.02°)
OKLaboklab(40.13% 0.01 -0.1597)
OKLCHoklch(40.13% 0.16 273.6)
XYZxyz(8.6795, 5.8808, 32.1237)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31389C #9C9531
analogous
#316D9C #31389C #60319C
triadic
#31389C #9C3138 #389C31
tetradic
#31389C #9C316D #9C9531 #319C60
square
#31389C #9C316D #9C9531 #319C60
split-complementary
#31389C #9C6031 #6D9C31
monochromatic
#14173F #22276D #31389C #454EC5 #747AD3

Accessibility & contrast

On white

9.65
#31389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#31389C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31389C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31389C#FFFFFF#000000##FFFFFF
##31389C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31389c;
/* rgb */ color: rgb(49, 56, 156);
/* oklch */ color: oklch(40.1% 0.160 273.6);
Tailwind
colors: {
  custom: {
    50: '#776eba',
    500: '#31389c',
    950: '#000000',
  },
}
SCSS
$custom: #31389c;
$custom-light: #776eba;
$custom-dark: #000000;
JSON
{
  "hex": "#31389c",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 236.075,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.16005,
    "h": 273.6
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31389C

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

Preview Lab → · Contrast checker → · Palette generator →

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