#31395B#31395B

#31395B is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.060 H 272.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#31395B
RGBrgb(49, 57, 91)
HSLhsl(229, 30%, 27%)
HSVhsv(229, 46%, 36%)
CMYKcmyk(46.2%, 37.4%, 0%, 64.3%)
CIE-LABlab(24.75, 6.81, -21.43)
CIE-LCHlch(24.75, 22.48, 287.63°)
OKLaboklab(35.37% 0.0031 -0.0602)
OKLCHoklch(35.37% 0.06 272.9)
XYZxyz(4.6175, 4.3343, 10.4888)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31395B #5B5331
analogous
#314E5B #31395B #3E315B
triadic
#31395B #5B3139 #395B31
tetradic
#31395B #5B314E #5B5331 #315B3E
square
#31395B #5B314E #5B5331 #315B3E
split-complementary
#31395B #5B3E31 #4E5B31
monochromatic
#0B0C14 #1C2033 #31395B #465283 #5E6CA8

Accessibility & contrast

On white

11.25
#31395B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31395B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31395B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31395B#FFFFFF#000000##FFFFFF
##31395B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3D5C
Deuteranopia (green-blind)
#29395A
Tritanopia (blue-blind)
#234045
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31395b;
/* rgb */ color: rgb(49, 57, 91);
/* oklch */ color: oklch(35.4% 0.060 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b6f89',
    500: '#31395b',
    950: '#000000',
  },
}
SCSS
$custom: #31395b;
$custom-light: #6b6f89;
$custom-dark: #000000;
JSON
{
  "hex": "#31395b",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 91
  },
  "hsl": {
    "h": 228.571,
    "s": 30,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35373,
    "c": 0.06024,
    "h": 272.9
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#31395B
secondary
#8C835C
accent
#B362C6
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #31395B

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

Preview Lab → · Contrast checker → · Palette generator →

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