#31344B#31344B

#31344B is a dark, muted blue. Relative luminance 0.036; OKLCH L 33.3% C 0.041 H 278.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#31344B
RGBrgb(49, 52, 75)
HSLhsl(233, 21%, 24%)
HSVhsv(233, 35%, 29%)
CMYKcmyk(34.7%, 30.7%, 0%, 70.6%)
CIE-LABlab(22.36, 5.08, -14.57)
CIE-LCHlch(22.36, 15.43, 289.22°)
OKLaboklab(33.26% 0.0058 -0.0404)
OKLCHoklch(33.26% 0.041 278.2)
XYZxyz(3.7643, 3.6168, 7.1550)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31344B #4B4831
analogous
#31414B #31344B #3B314B
triadic
#31344B #4B3134 #344B31
tetradic
#31344B #4B3141 #4B4831 #314B3B
square
#31344B #4B3141 #4B4831 #314B3B
split-complementary
#31344B #4B3B31 #414B31
monochromatic
#0C0D13 #191A26 #31344B #494E70 #616795

Accessibility & contrast

On white

12.19
#31344B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#31344B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31344B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31344B#FFFFFF#000000##FFFFFF
##31344B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D364C
Deuteranopia (green-blind)
#2C354A
Tritanopia (blue-blind)
#2A383C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31344b;
/* rgb */ color: rgb(49, 52, 75);
/* oklch */ color: oklch(33.3% 0.041 278.2);
Tailwind
colors: {
  custom: {
    50: '#6a6b7d',
    500: '#31344b',
    950: '#000000',
  },
}
SCSS
$custom: #31344b;
$custom-light: #6a6b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#31344b",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 75
  },
  "hsl": {
    "h": 233.077,
    "s": 20.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33257,
    "c": 0.0408,
    "h": 278.2
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#31344B
secondary
#7C785C
accent
#B46ABE
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #31344B

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

Preview Lab → · Contrast checker → · Palette generator →

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