#31386D#31386D

#31386D is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.091 H 275.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#31386D
RGBrgb(49, 56, 109)
HSLhsl(233, 38%, 31%)
HSVhsv(233, 55%, 43%)
CMYKcmyk(55%, 48.6%, 0%, 57.3%)
CIE-LABlab(25.52, 13.73, -31.86)
CIE-LCHlch(25.52, 34.69, 293.32°)
OKLaboklab(36.31% 0.0083 -0.0906)
OKLCHoklch(36.31% 0.091 275.3)
XYZxyz(5.4402, 4.5851, 15.0634)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31386D #6D6631
analogous
#31566D #31386D #48316D
triadic
#31386D #6D3138 #386D31
tetradic
#31386D #6D3156 #6D6631 #316D48
square
#31386D #6D3156 #6D6631 #316D48
split-complementary
#31386D #6D4831 #566D31
monochromatic
#0B0D19 #1E2243 #31386D #444E97 #616BB8

Accessibility & contrast

On white

10.95
#31386D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31386D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31386D
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31386D#FFFFFF#000000##FFFFFF
##31386D1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6F
Deuteranopia (green-blind)
#1A3A6C
Tritanopia (blue-blind)
#16444D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31386d;
/* rgb */ color: rgb(49, 56, 109);
/* oklch */ color: oklch(36.3% 0.091 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e6e97',
    500: '#31386d',
    950: '#000000',
  },
}
SCSS
$custom: #31386d;
$custom-light: #6e6e97;
$custom-dark: #000000;
JSON
{
  "hex": "#31386d",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 109
  },
  "hsl": {
    "h": 233,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36313,
    "c": 0.091,
    "h": 275.3
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#31386D
secondary
#9E965C
accent
#C05ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31386D

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

Preview Lab → · Contrast checker → · Palette generator →

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