#31558E#31558E

#31558E is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.2% C 0.103 H 259.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#31558E
RGBrgb(49, 85, 142)
HSLhsl(217, 49%, 37%)
HSVhsv(217, 65%, 56%)
CMYKcmyk(65.5%, 40.1%, 0%, 44.3%)
CIE-LABlab(36.18, 6.28, -35.45)
CIE-LCHlch(36.18, 36.00, 280.04°)
OKLaboklab(45.16% -0.0192 -0.1008)
OKLCHoklch(45.16% 0.103 259.2)
XYZxyz(9.3959, 9.1021, 26.8477)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31558E #8E6A31
analogous
#31848E #31558E #3B318E
triadic
#31558E #8E3155 #558E31
tetradic
#31558E #8E3184 #8E6A31 #318E3B
square
#31558E #8E3184 #8E6A31 #318E3B
split-complementary
#31558E #8E3B31 #848E31
monochromatic
#121F33 #213A61 #31558E #4170BB #6D92CD

Accessibility & contrast

On white

7.45
#31558E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#31558E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31558E
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31558E#FFFFFF#000000##FFFFFF
##31558E1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A90
Deuteranopia (green-blind)
#2E518D
Tritanopia (blue-blind)
#00626A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #31558e;
/* rgb */ color: rgb(49, 85, 142);
/* oklch */ color: oklch(45.2% 0.103 259.2);
Tailwind
colors: {
  custom: {
    50: '#7384af',
    500: '#31558e',
    950: '#000000',
  },
}
SCSS
$custom: #31558e;
$custom-light: #7384af;
$custom-dark: #000000;
JSON
{
  "hex": "#31558e",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 142
  },
  "hsl": {
    "h": 216.774,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45163,
    "c": 0.10262,
    "h": 259.2
  },
  "luminance": 0.09103
}

Semantic roles & 50–950 ramp

primary
#31558E
secondary
#B49667
accent
#A350D8
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31558E

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

Preview Lab → · Contrast checker → · Palette generator →

#31558E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva