#31366B#31366B

#31366B is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.7% C 0.091 H 276.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#31366B
RGBrgb(49, 54, 107)
HSLhsl(235, 37%, 31%)
HSVhsv(235, 54%, 42%)
CMYKcmyk(54.2%, 49.5%, 0%, 58%)
CIE-LABlab(24.80, 14.40, -31.71)
CIE-LCHlch(24.80, 34.83, 294.43°)
OKLaboklab(35.73% 0.0106 -0.0902)
OKLCHoklch(35.73% 0.091 276.7)
XYZxyz(5.2388, 4.3525, 14.4711)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31366B #6B6631
analogous
#31536B #31366B #49316B
triadic
#31366B #6B3136 #366B31
tetradic
#31366B #6B3153 #6B6631 #316B49
square
#31366B #6B3153 #6B6631 #316B49
split-complementary
#31366B #6B4931 #536B31
monochromatic
#0B0C17 #1E2141 #31366B #444B95 #6068B6

Accessibility & contrast

On white

11.23
#31366B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31366B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31366B#FFFFFF#000000##FFFFFF
##31366B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3D6D
Deuteranopia (green-blind)
#19396A
Tritanopia (blue-blind)
#19414B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31366b;
/* rgb */ color: rgb(49, 54, 107);
/* oklch */ color: oklch(35.7% 0.091 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e6c96',
    500: '#31366b',
    950: '#000000',
  },
}
SCSS
$custom: #31366b;
$custom-light: #6e6c96;
$custom-dark: #000000;
JSON
{
  "hex": "#31366b",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 107
  },
  "hsl": {
    "h": 234.828,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35729,
    "c": 0.09084,
    "h": 276.7
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#31366B
secondary
#9C975C
accent
#C35BCD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31366B

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

Preview Lab → · Contrast checker → · Palette generator →

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