#31386C#31386C

#31386C is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.089 H 275.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#31386C
RGBrgb(49, 56, 108)
HSLhsl(233, 38%, 31%)
HSVhsv(233, 55%, 42%)
CMYKcmyk(54.6%, 48.1%, 0%, 57.6%)
CIE-LABlab(25.45, 13.38, -31.32)
CIE-LCHlch(25.45, 34.06, 293.13°)
OKLaboklab(36.24% 0.0082 -0.089)
OKLCHoklch(36.24% 0.089 275.2)
XYZxyz(5.3867, 4.5637, 14.7815)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31386C #6C6531
analogous
#31556C #31386C #47316C
triadic
#31386C #6C3138 #386C31
tetradic
#31386C #6C3155 #6C6531 #316C47
square
#31386C #6C3155 #6C6531 #316C47
split-complementary
#31386C #6C4731 #556C31
monochromatic
#0B0C18 #1E2242 #31386C #444E96 #606BB7

Accessibility & contrast

On white

10.98
#31386C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31386C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31386C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31386C#FFFFFF#000000##FFFFFF
##31386C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6E
Deuteranopia (green-blind)
#1B3A6B
Tritanopia (blue-blind)
#17434C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31386c;
/* rgb */ color: rgb(49, 56, 108);
/* oklch */ color: oklch(36.2% 0.089 275.2);
Tailwind
colors: {
  custom: {
    50: '#6e6e96',
    500: '#31386c',
    950: '#000000',
  },
}
SCSS
$custom: #31386c;
$custom-light: #6e6e96;
$custom-dark: #000000;
JSON
{
  "hex": "#31386c",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 108
  },
  "hsl": {
    "h": 232.881,
    "s": 37.58,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36243,
    "c": 0.08941,
    "h": 275.2
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#31386C
secondary
#9D955C
accent
#C05ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31386C

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

Preview Lab → · Contrast checker → · Palette generator →

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