#31396D#31396D

#31396D is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.090 H 274.5°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#31396D
RGBrgb(49, 57, 109)
HSLhsl(232, 38%, 31%)
HSVhsv(232, 55%, 43%)
CMYKcmyk(55%, 47.7%, 0%, 57.3%)
CIE-LABlab(25.81, 13.04, -31.39)
CIE-LCHlch(25.81, 33.99, 292.57°)
OKLaboklab(36.54% 0.0071 -0.0892)
OKLCHoklch(36.54% 0.09 274.5)
XYZxyz(5.4892, 4.6830, 15.0797)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31396D #6D6531
analogous
#31576D #31396D #47316D
triadic
#31396D #6D3139 #396D31
tetradic
#31396D #6D3157 #6D6531 #316D47
square
#31396D #6D3157 #6D6531 #316D47
split-complementary
#31396D #6D4731 #576D31
monochromatic
#0B0D19 #1E2343 #31396D #444F97 #616CB8

Accessibility & contrast

On white

10.84
#31396D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#31396D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31396D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31396D#FFFFFF#000000##FFFFFF
##31396D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406F
Deuteranopia (green-blind)
#1C3B6C
Tritanopia (blue-blind)
#16444D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31396d;
/* rgb */ color: rgb(49, 57, 109);
/* oklch */ color: oklch(36.5% 0.090 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e6f97',
    500: '#31396d',
    950: '#000000',
  },
}
SCSS
$custom: #31396d;
$custom-light: #6e6f97;
$custom-dark: #000000;
JSON
{
  "hex": "#31396d",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 109
  },
  "hsl": {
    "h": 232,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36536,
    "c": 0.08952,
    "h": 274.5
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#31396D
secondary
#9E955C
accent
#BE5ACE
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31396D

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

Preview Lab → · Contrast checker → · Palette generator →

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