#31599F#31599F

#31599F is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.2% C 0.122 H 260.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#31599F
RGBrgb(49, 89, 159)
HSLhsl(218, 53%, 41%)
HSVhsv(218, 69%, 62%)
CMYKcmyk(69.2%, 44%, 0%, 37.6%)
CIE-LABlab(38.38, 9.98, -42.20)
CIE-LCHlch(38.38, 43.36, 283.31°)
OKLaboklab(47.19% -0.0196 -0.1206)
OKLCHoklch(47.19% 0.122 260.7)
XYZxyz(11.0948, 10.2998, 34.1975)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31599F #9F7731
analogous
#31909F #31599F #40319F
triadic
#31599F #9F3159 #599F31
tetradic
#31599F #9F3190 #9F7731 #319F40
square
#31599F #9F3190 #9F7731 #319F40
split-complementary
#31599F #9F4031 #909F31
monochromatic
#142541 #233F70 #31599F #4775C6 #7698D5

Accessibility & contrast

On white

6.86
#31599F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#31599F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31599F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31599F#FFFFFF#000000##FFFFFF
##31599F1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3760A2
Deuteranopia (green-blind)
#25569E
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #31599f;
/* rgb */ color: rgb(49, 89, 159);
/* oklch */ color: oklch(47.2% 0.122 260.7);
Tailwind
colors: {
  custom: {
    50: '#7687bc',
    500: '#31599f',
    950: '#000000',
  },
}
SCSS
$custom: #31599f;
$custom-light: #7687bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31599f",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 159
  },
  "hsl": {
    "h": 218.182,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47189,
    "c": 0.12215,
    "h": 260.7
  },
  "luminance": 0.10301
}

Semantic roles & 50–950 ramp

primary
#31599F
secondary
#BDA16F
accent
#A84CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #31599F

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

Preview Lab → · Contrast checker → · Palette generator →

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