#31356D#31356D

#31356D is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.7% C 0.096 H 277.3°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#31356D
RGBrgb(49, 53, 109)
HSLhsl(236, 38%, 31%)
HSVhsv(236, 55%, 43%)
CMYKcmyk(55%, 51.4%, 0%, 57.3%)
CIE-LABlab(24.65, 15.80, -33.25)
CIE-LCHlch(24.65, 36.81, 295.42°)
OKLaboklab(35.65% 0.0122 -0.0947)
OKLCHoklch(35.65% 0.096 277.3)
XYZxyz(5.2992, 4.3030, 15.0164)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31356D #6D6931
analogous
#31536D #31356D #4B316D
triadic
#31356D #6D3135 #356D31
tetradic
#31356D #6D3153 #6D6931 #316D4B
square
#31356D #6D3153 #6D6931 #316D4B
split-complementary
#31356D #6D4B31 #536D31
monochromatic
#0B0C19 #1E2043 #31356D #444A97 #6166B8

Accessibility & contrast

On white

11.29
#31356D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31356D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31356D
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31356D#FFFFFF#000000##FFFFFF
##31356D1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3D6F
Deuteranopia (green-blind)
#14386C
Tritanopia (blue-blind)
#17414B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31356d;
/* rgb */ color: rgb(49, 53, 109);
/* oklch */ color: oklch(35.7% 0.096 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e6c97',
    500: '#31356d',
    950: '#000000',
  },
}
SCSS
$custom: #31356d;
$custom-light: #6e6c97;
$custom-dark: #000000;
JSON
{
  "hex": "#31356d",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 109
  },
  "hsl": {
    "h": 236,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.09552,
    "h": 277.3
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#31356D
secondary
#9E9A5C
accent
#C65ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31356D

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

Preview Lab → · Contrast checker → · Palette generator →

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