#31599B#31599B

#31599B is a mid, moderate blue. Relative luminance 0.102; OKLCH L 46.9% C 0.116 H 259.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#31599B
RGBrgb(49, 89, 155)
HSLhsl(217, 52%, 40%)
HSVhsv(217, 68%, 61%)
CMYKcmyk(68.4%, 42.6%, 0%, 39.2%)
CIE-LABlab(38.13, 8.49, -40.19)
CIE-LCHlch(38.13, 41.08, 281.93°)
OKLaboklab(46.92% -0.0205 -0.1147)
OKLCHoklch(46.92% 0.116 259.9)
XYZxyz(10.7533, 10.1632, 32.3990)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31599B #9B7331
analogous
#318E9B #31599B #3E319B
triadic
#31599B #9B3159 #599B31
tetradic
#31599B #9B318E #9B7331 #319B3E
square
#31599B #9B318E #9B7331 #319B3E
split-complementary
#31599B #9B3E31 #8E9B31
monochromatic
#14243E #223E6D #31599B #4575C4 #7398D3

Accessibility & contrast

On white

6.92
#31599B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#31599B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31599B
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31599B#FFFFFF#000000##FFFFFF
##31599B1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5F9E
Deuteranopia (green-blind)
#29559A
Tritanopia (blue-blind)
#006872
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #31599b;
/* rgb */ color: rgb(49, 89, 155);
/* oklch */ color: oklch(46.9% 0.116 259.9);
Tailwind
colors: {
  custom: {
    50: '#7587b9',
    500: '#31599b',
    950: '#000000',
  },
}
SCSS
$custom: #31599b;
$custom-light: #7587b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31599b",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 155
  },
  "hsl": {
    "h": 217.358,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.11647,
    "h": 259.9
  },
  "luminance": 0.10164
}

Semantic roles & 50–950 ramp

primary
#31599B
secondary
#BB9D6D
accent
#A54CDB
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #31599B

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

Preview Lab → · Contrast checker → · Palette generator →

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