#31399C#31399C

#31399C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.159 H 273.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#31399C
RGBrgb(49, 57, 156)
HSLhsl(236, 52%, 40%)
HSVhsv(236, 69%, 61%)
CMYKcmyk(68.6%, 63.5%, 0%, 38.8%)
CIE-LABlab(29.36, 30.07, -54.96)
CIE-LCHlch(29.36, 62.65, 298.68°)
OKLaboklab(40.31% 0.0092 -0.1585)
OKLCHoklch(40.31% 0.159 273.3)
XYZxyz(8.7285, 5.9787, 32.1401)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31399C #9C9431
analogous
#316E9C #31399C #5E319C
triadic
#31399C #9C3139 #399C31
tetradic
#31399C #9C316E #9C9431 #319C5E
square
#31399C #9C316E #9C9431 #319C5E
split-complementary
#31399C #9C5E31 #6E9C31
monochromatic
#14173F #22286D #31399C #454FC5 #747BD3

Accessibility & contrast

On white

9.56
#31399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#31399C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31399C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31399C#FFFFFF#000000##FFFFFF
##31399C1.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)
#004A9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31399c;
/* rgb */ color: rgb(49, 57, 156);
/* oklch */ color: oklch(40.3% 0.159 273.3);
Tailwind
colors: {
  custom: {
    50: '#776fba',
    500: '#31399c',
    950: '#000000',
  },
}
SCSS
$custom: #31399c;
$custom-light: #776fba;
$custom-dark: #000000;
JSON
{
  "hex": "#31399c",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 235.514,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4031,
    "c": 0.15881,
    "h": 273.3
  },
  "luminance": 0.0598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31399C

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

Preview Lab → · Contrast checker → · Palette generator →

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