#31345B#31345B

#31345B is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.2% C 0.068 H 278.8°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#31345B
RGBrgb(49, 52, 91)
HSLhsl(236, 30%, 27%)
HSVhsv(236, 46%, 36%)
CMYKcmyk(46.2%, 42.9%, 0%, 64.3%)
CIE-LABlab(23.22, 10.25, -23.84)
CIE-LCHlch(23.22, 25.95, 293.27°)
OKLaboklab(34.2% 0.0104 -0.0672)
OKLCHoklch(34.2% 0.068 278.8)
XYZxyz(4.3824, 3.8641, 10.4104)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31345B #5B5831
analogous
#31495B #31345B #43315B
triadic
#31345B #5B3134 #345B31
tetradic
#31345B #5B3149 #5B5831 #315B43
square
#31345B #5B3149 #5B5831 #315B43
split-complementary
#31345B #5B4331 #495B31
monochromatic
#0B0B14 #1C1D33 #31345B #464B83 #5E63A8

Accessibility & contrast

On white

11.85
#31345B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#31345B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31345B
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31345B#FFFFFF#000000##FFFFFF
##31345B1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26395D
Deuteranopia (green-blind)
#23365A
Tritanopia (blue-blind)
#243C43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31345b;
/* rgb */ color: rgb(49, 52, 91);
/* oklch */ color: oklch(34.2% 0.068 278.8);
Tailwind
colors: {
  custom: {
    50: '#6b6b89',
    500: '#31345b',
    950: '#000000',
  },
}
SCSS
$custom: #31345b;
$custom-light: #6b6b89;
$custom-dark: #000000;
JSON
{
  "hex": "#31345b",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 91
  },
  "hsl": {
    "h": 235.714,
    "s": 30,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34196,
    "c": 0.06798,
    "h": 278.8
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#31345B
secondary
#8C895C
accent
#BF62C6
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060B
muted
#7A7A7C

Preview Lab

Preview with #31345B

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

Preview Lab → · Contrast checker → · Palette generator →

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