#31386F#31386F

#31386F is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.094 H 275.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#31386F
RGBrgb(49, 56, 111)
HSLhsl(233, 39%, 31%)
HSVhsv(233, 56%, 44%)
CMYKcmyk(55.9%, 49.5%, 0%, 56.5%)
CIE-LABlab(25.65, 14.45, -32.93)
CIE-LCHlch(25.65, 35.96, 293.69°)
OKLaboklab(36.46% 0.0086 -0.0938)
OKLCHoklch(36.46% 0.094 275.3)
XYZxyz(5.5491, 4.6286, 15.6369)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31386F #6F6831
analogous
#31576F #31386F #49316F
triadic
#31386F #6F3138 #386F31
tetradic
#31386F #6F3157 #6F6831 #316F49
square
#31386F #6F3157 #6F6831 #316F49
split-complementary
#31386F #6F4931 #576F31
monochromatic
#0C0D1A #1E2345 #31386F #444D99 #616BB9

Accessibility & contrast

On white

10.90
#31386F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#31386F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31386F
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31386F#FFFFFF#000000##FFFFFF
##31386F1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3F71
Deuteranopia (green-blind)
#183A6E
Tritanopia (blue-blind)
#14444E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31386f;
/* rgb */ color: rgb(49, 56, 111);
/* oklch */ color: oklch(36.5% 0.094 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e6e99',
    500: '#31386f',
    950: '#000000',
  },
}
SCSS
$custom: #31386f;
$custom-light: #6e6e99;
$custom-dark: #000000;
JSON
{
  "hex": "#31386f",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 111
  },
  "hsl": {
    "h": 233.226,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36455,
    "c": 0.09417,
    "h": 275.3
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#31386F
secondary
#A0985C
accent
#C159CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #31386F

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

Preview Lab → · Contrast checker → · Palette generator →

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