#31487E#31487E

#31487E is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.095 H 265.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#31487E
RGBrgb(49, 72, 126)
HSLhsl(222, 44%, 34%)
HSVhsv(222, 61%, 49%)
CMYKcmyk(61.1%, 42.9%, 0%, 50.6%)
CIE-LABlab(31.33, 8.99, -33.32)
CIE-LCHlch(31.33, 34.51, 285.10°)
OKLaboklab(41.11% -0.0081 -0.0947)
OKLCHoklch(41.11% 0.095 265.1)
XYZxyz(7.3486, 6.7934, 20.6586)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31487E #7E6731
analogous
#316F7E #31487E #41317E
triadic
#31487E #7E3148 #487E31
tetradic
#31487E #7E316F #7E6731 #317E41
square
#31487E #7E316F #7E6731 #317E41
split-complementary
#31487E #7E4131 #6F7E31
monochromatic
#0F1626 #202F52 #31487E #4261AA #6682C3

Accessibility & contrast

On white

8.90
#31487E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#31487E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31487E
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31487E#FFFFFF#000000##FFFFFF
##31487E1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D80
Deuteranopia (green-blind)
#26467D
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31487e;
/* rgb */ color: rgb(49, 72, 126);
/* oklch */ color: oklch(41.1% 0.095 265.1);
Tailwind
colors: {
  custom: {
    50: '#707aa4',
    500: '#31487e',
    950: '#000000',
  },
}
SCSS
$custom: #31487e;
$custom-light: #707aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#31487e",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 126
  },
  "hsl": {
    "h": 222.078,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41108,
    "c": 0.09508,
    "h": 265.1
  },
  "luminance": 0.06794
}

Semantic roles & 50–950 ramp

primary
#31487E
secondary
#AB9460
accent
#AE54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31487E

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

Preview Lab → · Contrast checker → · Palette generator →

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