#31388E#31388E

#31388E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.141 H 274.3°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#31388E
RGBrgb(49, 56, 142)
HSLhsl(235, 49%, 37%)
HSVhsv(235, 65%, 56%)
CMYKcmyk(65.5%, 60.6%, 0%, 44.3%)
CIE-LABlab(27.94, 25.66, -48.70)
CIE-LCHlch(27.94, 55.05, 297.79°)
OKLaboklab(38.9% 0.0105 -0.1402)
OKLCHoklch(38.9% 0.141 274.3)
XYZxyz(7.5617, 5.4337, 26.2363)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31388E #8E8731
analogous
#31668E #31388E #59318E
triadic
#31388E #8E3138 #388E31
tetradic
#31388E #8E3166 #8E8731 #318E59
square
#31388E #8E3166 #8E8731 #318E59
split-complementary
#31388E #8E5931 #668E31
monochromatic
#121433 #212661 #31388E #414ABB #6D74CD

Accessibility & contrast

On white

10.06
#31388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#31388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31388E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31388E#FFFFFF#000000##FFFFFF
##31388E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31388e;
/* rgb */ color: rgb(49, 56, 142);
/* oklch */ color: oklch(38.9% 0.141 274.3);
Tailwind
colors: {
  custom: {
    50: '#746eb0',
    500: '#31388e',
    950: '#000000',
  },
}
SCSS
$custom: #31388e;
$custom-light: #746eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#31388e",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 235.484,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38896,
    "c": 0.14055,
    "h": 274.3
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#31388E
secondary
#B4AE67
accent
#CE50D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31388E

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

Preview Lab → · Contrast checker → · Palette generator →

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