#31599C#31599C

#31599C is a mid, moderate blue. Relative luminance 0.102; OKLCH L 47.0% C 0.118 H 260.1°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#31599C
RGBrgb(49, 89, 156)
HSLhsl(218, 52%, 40%)
HSVhsv(218, 69%, 61%)
CMYKcmyk(68.6%, 42.9%, 0%, 38.8%)
CIE-LABlab(38.19, 8.86, -40.69)
CIE-LCHlch(38.19, 41.65, 282.29°)
OKLaboklab(46.99% -0.0203 -0.1161)
OKLCHoklch(46.99% 0.118 260.1)
XYZxyz(10.8376, 10.1969, 32.8431)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31599C #9C7431
analogous
#318E9C #31599C #3E319C
triadic
#31599C #9C3159 #599C31
tetradic
#31599C #9C318E #9C7431 #319C3E
square
#31599C #9C318E #9C7431 #319C3E
split-complementary
#31599C #9C3E31 #8E9C31
monochromatic
#14243F #223E6D #31599C #4575C5 #7498D3

Accessibility & contrast

On white

6.91
#31599C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#31599C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31599C
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31599C#FFFFFF#000000##FFFFFF
##31599C1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5F9F
Deuteranopia (green-blind)
#28559B
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #31599c;
/* rgb */ color: rgb(49, 89, 156);
/* oklch */ color: oklch(47.0% 0.118 260.1);
Tailwind
colors: {
  custom: {
    50: '#7587b9',
    500: '#31599c',
    950: '#000000',
  },
}
SCSS
$custom: #31599c;
$custom-light: #7587b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31599c",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 156
  },
  "hsl": {
    "h": 217.57,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4699,
    "c": 0.11789,
    "h": 260.1
  },
  "luminance": 0.10198
}

Semantic roles & 50–950 ramp

primary
#31599C
secondary
#BB9E6D
accent
#A64CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #31599C

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

Preview Lab → · Contrast checker → · Palette generator →

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