#31366D#31366D

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

Color values

HEX#31366D
RGBrgb(49, 54, 109)
HSLhsl(235, 38%, 31%)
HSVhsv(235, 55%, 43%)
CMYKcmyk(55%, 50.5%, 0%, 57.3%)
CIE-LABlab(24.94, 15.11, -32.79)
CIE-LCHlch(24.94, 36.10, 294.75°)
OKLaboklab(35.87% 0.0109 -0.0934)
OKLCHoklch(35.87% 0.094 276.7)
XYZxyz(5.3452, 4.3951, 15.0317)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31366D #6D6831
analogous
#31546D #31366D #4A316D
triadic
#31366D #6D3136 #366D31
tetradic
#31366D #6D3154 #6D6831 #316D4A
square
#31366D #6D3154 #6D6831 #316D4A
split-complementary
#31366D #6D4A31 #546D31
monochromatic
#0B0C19 #1E2143 #31366D #444B97 #6168B8

Accessibility & contrast

On white

11.18
#31366D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31366D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31366D
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31366D#FFFFFF#000000##FFFFFF
##31366D1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E6F
Deuteranopia (green-blind)
#16396C
Tritanopia (blue-blind)
#17424C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31366d;
/* rgb */ color: rgb(49, 54, 109);
/* oklch */ color: oklch(35.9% 0.094 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e6c97',
    500: '#31366d',
    950: '#000000',
  },
}
SCSS
$custom: #31366d;
$custom-light: #6e6c97;
$custom-dark: #000000;
JSON
{
  "hex": "#31366d",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 109
  },
  "hsl": {
    "h": 235,
    "s": 37.975,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.094,
    "h": 276.7
  },
  "luminance": 0.04395
}

Semantic roles & 50–950 ramp

primary
#31366D
secondary
#9E995C
accent
#C45ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31366D

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

Preview Lab → · Contrast checker → · Palette generator →

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