#31356B#31356B

#31356B is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.5% C 0.092 H 277.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#31356B
RGBrgb(49, 53, 107)
HSLhsl(236, 37%, 31%)
HSVhsv(236, 54%, 42%)
CMYKcmyk(54.2%, 50.5%, 0%, 58%)
CIE-LABlab(24.51, 15.09, -32.18)
CIE-LCHlch(24.51, 35.54, 295.13°)
OKLaboklab(35.51% 0.0119 -0.0916)
OKLCHoklch(35.51% 0.092 277.4)
XYZxyz(5.1927, 4.2604, 14.4558)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31356B #6B6731
analogous
#31526B #31356B #4A316B
triadic
#31356B #6B3135 #356B31
tetradic
#31356B #6B3152 #6B6731 #316B4A
square
#31356B #6B3152 #6B6731 #316B4A
split-complementary
#31356B #6B4A31 #526B31
monochromatic
#0B0B17 #1E2041 #31356B #444A95 #6066B6

Accessibility & contrast

On white

11.34
#31356B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31356B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31356B
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31356B#FFFFFF#000000##FFFFFF
##31356B1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3D6D
Deuteranopia (green-blind)
#17386A
Tritanopia (blue-blind)
#19414B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31356b;
/* rgb */ color: rgb(49, 53, 107);
/* oklch */ color: oklch(35.5% 0.092 277.4);
Tailwind
colors: {
  custom: {
    50: '#6e6c96',
    500: '#31356b',
    950: '#000000',
  },
}
SCSS
$custom: #31356b;
$custom-light: #6e6c96;
$custom-dark: #000000;
JSON
{
  "hex": "#31356b",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 107
  },
  "hsl": {
    "h": 235.862,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35509,
    "c": 0.09236,
    "h": 277.4
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#31356B
secondary
#9C985C
accent
#C55BCD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31356B

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

Preview Lab → · Contrast checker → · Palette generator →

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