#31366C#31366C

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

Color values

HEX#31366C
RGBrgb(49, 54, 108)
HSLhsl(235, 38%, 31%)
HSVhsv(235, 55%, 42%)
CMYKcmyk(54.6%, 50%, 0%, 57.6%)
CIE-LABlab(24.87, 14.76, -32.25)
CIE-LCHlch(24.87, 35.47, 294.59°)
OKLaboklab(35.8% 0.0108 -0.0918)
OKLCHoklch(35.8% 0.092 276.7)
XYZxyz(5.2917, 4.3737, 14.7498)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31366C #6C6731
analogous
#31536C #31366C #49316C
triadic
#31366C #6C3136 #366C31
tetradic
#31366C #6C3153 #6C6731 #316C49
square
#31366C #6C3153 #6C6731 #316C49
split-complementary
#31366C #6C4931 #536C31
monochromatic
#0B0C18 #1E2142 #31366C #444B96 #6068B7

Accessibility & contrast

On white

11.20
#31366C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31366C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31366C#FFFFFF#000000##FFFFFF
##31366C1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3D6E
Deuteranopia (green-blind)
#17396B
Tritanopia (blue-blind)
#18424B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31366c;
/* rgb */ color: rgb(49, 54, 108);
/* oklch */ color: oklch(35.8% 0.092 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e6c96',
    500: '#31366c',
    950: '#000000',
  },
}
SCSS
$custom: #31366c;
$custom-light: #6e6c96;
$custom-dark: #000000;
JSON
{
  "hex": "#31366c",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 108
  },
  "hsl": {
    "h": 234.915,
    "s": 37.58,
    "l": 30.784
  },
  "oklch": {
    "l": 0.358,
    "c": 0.09243,
    "h": 276.7
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31366C

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

Preview Lab → · Contrast checker → · Palette generator →

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