#31366E#31366E

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

Color values

HEX#31366E
RGBrgb(49, 54, 110)
HSLhsl(235, 38%, 31%)
HSVhsv(235, 55%, 43%)
CMYKcmyk(55.5%, 50.9%, 0%, 56.9%)
CIE-LABlab(25.00, 15.47, -33.32)
CIE-LCHlch(25.00, 36.73, 294.90°)
OKLaboklab(35.94% 0.011 -0.0949)
OKLCHoklch(35.94% 0.096 276.6)
XYZxyz(5.3994, 4.4167, 15.3168)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31366E #6E6931
analogous
#31546E #31366E #4A316E
triadic
#31366E #6E3136 #366E31
tetradic
#31366E #6E3154 #6E6931 #316E4A
square
#31366E #6E3154 #6E6931 #316E4A
split-complementary
#31366E #6E4A31 #546E31
monochromatic
#0B0C19 #1E2144 #31366E #444B98 #6168B9

Accessibility & contrast

On white

11.15
#31366E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31366E
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31366E#FFFFFF#000000##FFFFFF
##31366E1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3E70
Deuteranopia (green-blind)
#15396D
Tritanopia (blue-blind)
#16424C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31366e;
/* rgb */ color: rgb(49, 54, 110);
/* oklch */ color: oklch(35.9% 0.096 276.6);
Tailwind
colors: {
  custom: {
    50: '#6e6c98',
    500: '#31366e',
    950: '#000000',
  },
}
SCSS
$custom: #31366e;
$custom-light: #6e6c98;
$custom-dark: #000000;
JSON
{
  "hex": "#31366e",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 110
  },
  "hsl": {
    "h": 235.082,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.09558,
    "h": 276.6
  },
  "luminance": 0.04417
}

Semantic roles & 50–950 ramp

primary
#31366E
secondary
#9F9A5C
accent
#C559CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31366E

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

Preview Lab → · Contrast checker → · Palette generator →

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