#31386E#31386E

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

Color values

HEX#31386E
RGBrgb(49, 56, 110)
HSLhsl(233, 38%, 31%)
HSVhsv(233, 55%, 43%)
CMYKcmyk(55.5%, 49.1%, 0%, 56.9%)
CIE-LABlab(25.58, 14.09, -32.39)
CIE-LCHlch(25.58, 35.32, 293.51°)
OKLaboklab(36.38% 0.0085 -0.0922)
OKLCHoklch(36.38% 0.093 275.3)
XYZxyz(5.4944, 4.6067, 15.3485)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31386E #6E6731
analogous
#31566E #31386E #48316E
triadic
#31386E #6E3138 #386E31
tetradic
#31386E #6E3156 #6E6731 #316E48
square
#31386E #6E3156 #6E6731 #316E48
split-complementary
#31386E #6E4831 #566E31
monochromatic
#0B0D19 #1E2244 #31386E #444E98 #616BB9

Accessibility & contrast

On white

10.93
#31386E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31386E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31386E
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31386E#FFFFFF#000000##FFFFFF
##31386E1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203F70
Deuteranopia (green-blind)
#193A6D
Tritanopia (blue-blind)
#15444D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31386e;
/* rgb */ color: rgb(49, 56, 110);
/* oklch */ color: oklch(36.4% 0.093 275.3);
Tailwind
colors: {
  custom: {
    50: '#6e6e98',
    500: '#31386e',
    950: '#000000',
  },
}
SCSS
$custom: #31386e;
$custom-light: #6e6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#31386e",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 110
  },
  "hsl": {
    "h": 233.115,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36384,
    "c": 0.09259,
    "h": 275.3
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#31386E
secondary
#9F975C
accent
#C159CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #31386E

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

Preview Lab → · Contrast checker → · Palette generator →

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