#31486D#31486D

#31486D is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.1% C 0.069 H 259.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#31486D
RGBrgb(49, 72, 109)
HSLhsl(217, 38%, 31%)
HSVhsv(217, 55%, 43%)
CMYKcmyk(55%, 33.9%, 0%, 57.3%)
CIE-LABlab(30.38, 2.90, -24.16)
CIE-LCHlch(30.38, 24.33, 276.85°)
OKLaboklab(40.06% -0.0125 -0.068)
OKLCHoklch(40.06% 0.069 259.6)
XYZxyz(6.3434, 6.3914, 15.3644)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31486D #6D5631
analogous
#31666D #31486D #38316D
triadic
#31486D #6D3148 #486D31
tetradic
#31486D #6D3166 #6D5631 #316D38
square
#31486D #6D3166 #6D5631 #316D38
split-complementary
#31486D #6D3831 #666D31
monochromatic
#0B1019 #1E2C43 #31486D #446497 #6182B8

Accessibility & contrast

On white

9.22
#31486D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#31486D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31486D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31486D#FFFFFF#000000##FFFFFF
##31486D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394B6F
Deuteranopia (green-blind)
#32456C
Tritanopia (blue-blind)
#125055
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31486d;
/* rgb */ color: rgb(49, 72, 109);
/* oklch */ color: oklch(40.1% 0.069 259.6);
Tailwind
colors: {
  custom: {
    50: '#6d7a97',
    500: '#31486d',
    950: '#000000',
  },
}
SCSS
$custom: #31486d;
$custom-light: #6d7a97;
$custom-dark: #000000;
JSON
{
  "hex": "#31486d",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 109
  },
  "hsl": {
    "h": 217,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.06914,
    "h": 259.6
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#31486D
secondary
#9E855C
accent
#A15ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31486D

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

Preview Lab → · Contrast checker → · Palette generator →

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