#31396B#31396B

#31396B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.086 H 274.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#31396B
RGBrgb(49, 57, 107)
HSLhsl(232, 37%, 31%)
HSVhsv(232, 54%, 42%)
CMYKcmyk(54.2%, 46.7%, 0%, 58%)
CIE-LABlab(25.68, 12.33, -30.31)
CIE-LCHlch(25.68, 32.72, 292.15°)
OKLaboklab(36.4% 0.0067 -0.0861)
OKLCHoklch(36.4% 0.086 274.5)
XYZxyz(5.3827, 4.6404, 14.5191)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31396B #6B6331
analogous
#31566B #31396B #46316B
triadic
#31396B #6B3139 #396B31
tetradic
#31396B #6B3156 #6B6331 #316B46
square
#31396B #6B3156 #6B6331 #316B46
split-complementary
#31396B #6B4631 #566B31
monochromatic
#0B0C17 #1E2341 #31396B #444F95 #606CB6

Accessibility & contrast

On white

10.89
#31396B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#31396B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31396B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31396B#FFFFFF#000000##FFFFFF
##31396B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243F6D
Deuteranopia (green-blind)
#1E3B6A
Tritanopia (blue-blind)
#18444C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31396b;
/* rgb */ color: rgb(49, 57, 107);
/* oklch */ color: oklch(36.4% 0.086 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e6f96',
    500: '#31396b',
    950: '#000000',
  },
}
SCSS
$custom: #31396b;
$custom-light: #6e6f96;
$custom-dark: #000000;
JSON
{
  "hex": "#31396b",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 107
  },
  "hsl": {
    "h": 231.724,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36398,
    "c": 0.08633,
    "h": 274.5
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#31396B
secondary
#9C935C
accent
#BD5BCD
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31396B

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

Preview Lab → · Contrast checker → · Palette generator →

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