#31487C#31487C

#31487C is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.092 H 264.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#31487C
RGBrgb(49, 72, 124)
HSLhsl(222, 43%, 34%)
HSVhsv(222, 60%, 49%)
CMYKcmyk(60.5%, 41.9%, 0%, 51.4%)
CIE-LABlab(31.21, 8.26, -32.26)
CIE-LCHlch(31.21, 33.30, 284.36°)
OKLaboklab(40.98% -0.0085 -0.0916)
OKLCHoklch(40.98% 0.092 264.7)
XYZxyz(7.2208, 6.7423, 19.9858)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31487C #7C6531
analogous
#316E7C #31487C #40317C
triadic
#31487C #7C3148 #487C31
tetradic
#31487C #7C316E #7C6531 #317C40
square
#31487C #7C316E #7C6531 #317C40
split-complementary
#31487C #7C4031 #6E7C31
monochromatic
#0E1524 #202F50 #31487C #4261A8 #6582C2

Accessibility & contrast

On white

8.94
#31487C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31487C
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31487C#FFFFFF#000000##FFFFFF
##31487C1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324D7E
Deuteranopia (green-blind)
#28467B
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31487c;
/* rgb */ color: rgb(49, 72, 124);
/* oklch */ color: oklch(41.0% 0.092 264.7);
Tailwind
colors: {
  custom: {
    50: '#707aa2',
    500: '#31487c',
    950: '#000000',
  },
}
SCSS
$custom: #31487c;
$custom-light: #707aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#31487c",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 124
  },
  "hsl": {
    "h": 221.6,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40978,
    "c": 0.09204,
    "h": 264.7
  },
  "luminance": 0.06743
}

Semantic roles & 50–950 ramp

primary
#31487C
secondary
#AA935F
accent
#AC55D3
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31487C

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

Preview Lab → · Contrast checker → · Palette generator →

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