#31487D#31487D

#31487D is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.0% C 0.094 H 264.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#31487D
RGBrgb(49, 72, 125)
HSLhsl(222, 44%, 34%)
HSVhsv(222, 61%, 49%)
CMYKcmyk(60.8%, 42.4%, 0%, 51%)
CIE-LABlab(31.27, 8.62, -32.79)
CIE-LCHlch(31.27, 33.90, 284.74°)
OKLaboklab(41.04% -0.0083 -0.0932)
OKLCHoklch(41.04% 0.094 264.9)
XYZxyz(7.2844, 6.7678, 20.3205)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31487D #7D6631
analogous
#316E7D #31487D #40317D
triadic
#31487D #7D3148 #487D31
tetradic
#31487D #7D316E #7D6631 #317D40
square
#31487D #7D316E #7D6631 #317D40
split-complementary
#31487D #7D4031 #6E7D31
monochromatic
#0F1525 #202F51 #31487D #4261A9 #6682C3

Accessibility & contrast

On white

8.92
#31487D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#31487D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31487D
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31487D#FFFFFF#000000##FFFFFF
##31487D1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7F
Deuteranopia (green-blind)
#27467C
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31487d;
/* rgb */ color: rgb(49, 72, 125);
/* oklch */ color: oklch(41.0% 0.094 264.9);
Tailwind
colors: {
  custom: {
    50: '#707aa3',
    500: '#31487d',
    950: '#000000',
  },
}
SCSS
$custom: #31487d;
$custom-light: #707aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#31487d",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 125
  },
  "hsl": {
    "h": 221.842,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41043,
    "c": 0.09356,
    "h": 264.9
  },
  "luminance": 0.06768
}

Semantic roles & 50–950 ramp

primary
#31487D
secondary
#AA9460
accent
#AD54D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31487D

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

Preview Lab → · Contrast checker → · Palette generator →

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