#31366F#31366F

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

Color values

HEX#31366F
RGBrgb(49, 54, 111)
HSLhsl(235, 39%, 31%)
HSVhsv(235, 56%, 44%)
CMYKcmyk(55.9%, 51.4%, 0%, 56.5%)
CIE-LABlab(25.07, 15.82, -33.85)
CIE-LCHlch(25.07, 37.37, 295.05°)
OKLaboklab(36.02% 0.0111 -0.0965)
OKLCHoklch(36.02% 0.097 276.6)
XYZxyz(5.4541, 4.4386, 15.6052)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31366F #6F6A31
analogous
#31556F #31366F #4B316F
triadic
#31366F #6F3136 #366F31
tetradic
#31366F #6F3155 #6F6A31 #316F4B
square
#31366F #6F3155 #6F6A31 #316F4B
split-complementary
#31366F #6F4B31 #556F31
monochromatic
#0C0D1A #1E2145 #31366F #444B99 #6168B9

Accessibility & contrast

On white

11.12
#31366F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#31366F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31366F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31366F#FFFFFF#000000##FFFFFF
##31366F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3E71
Deuteranopia (green-blind)
#14396E
Tritanopia (blue-blind)
#15434D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31366f;
/* rgb */ color: rgb(49, 54, 111);
/* oklch */ color: oklch(36.0% 0.097 276.6);
Tailwind
colors: {
  custom: {
    50: '#6e6c99',
    500: '#31366f',
    950: '#000000',
  },
}
SCSS
$custom: #31366f;
$custom-light: #6e6c99;
$custom-dark: #000000;
JSON
{
  "hex": "#31366f",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 111
  },
  "hsl": {
    "h": 235.161,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36017,
    "c": 0.09714,
    "h": 276.6
  },
  "luminance": 0.04439
}

Semantic roles & 50–950 ramp

primary
#31366F
secondary
#A09B5C
accent
#C559CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #31366F

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

Preview Lab → · Contrast checker → · Palette generator →

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