#31599D#31599D

#31599D is a mid, moderate blue. Relative luminance 0.102; OKLCH L 47.1% C 0.119 H 260.3°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#31599D
RGBrgb(49, 89, 157)
HSLhsl(218, 52%, 40%)
HSVhsv(218, 69%, 62%)
CMYKcmyk(68.8%, 43.3%, 0%, 38.4%)
CIE-LABlab(38.25, 9.24, -41.20)
CIE-LCHlch(38.25, 42.22, 282.64°)
OKLaboklab(47.06% -0.02 -0.1176)
OKLCHoklch(47.06% 0.119 260.3)
XYZxyz(10.9226, 10.2309, 33.2909)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31599D #9D7531
analogous
#318F9D #31599D #3F319D
triadic
#31599D #9D3159 #599D31
tetradic
#31599D #9D318F #9D7531 #319D3F
square
#31599D #9D318F #9D7531 #319D3F
split-complementary
#31599D #9D3F31 #8F9D31
monochromatic
#142440 #223F6E #31599D #4675C5 #7598D4

Accessibility & contrast

On white

6.89
#31599D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#31599D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31599D
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31599D#FFFFFF#000000##FFFFFF
##31599D1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395FA0
Deuteranopia (green-blind)
#27559C
Tritanopia (blue-blind)
#006973
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #31599d;
/* rgb */ color: rgb(49, 89, 157);
/* oklch */ color: oklch(47.1% 0.119 260.3);
Tailwind
colors: {
  custom: {
    50: '#7687ba',
    500: '#31599d',
    950: '#000000',
  },
}
SCSS
$custom: #31599d;
$custom-light: #7687ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31599d",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 157
  },
  "hsl": {
    "h": 217.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47056,
    "c": 0.11931,
    "h": 260.3
  },
  "luminance": 0.10232
}

Semantic roles & 50–950 ramp

primary
#31599D
secondary
#BC9F6E
accent
#A74CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #31599D

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

Preview Lab → · Contrast checker → · Palette generator →

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