#31388D#31388D

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

Color values

HEX#31388D
RGBrgb(49, 56, 141)
HSLhsl(235, 48%, 37%)
HSVhsv(235, 65%, 55%)
CMYKcmyk(65.2%, 60.3%, 0%, 44.7%)
CIE-LABlab(27.86, 25.30, -48.22)
CIE-LCHlch(27.86, 54.45, 297.69°)
OKLaboklab(38.81% 0.0105 -0.1387)
OKLCHoklch(38.81% 0.139 274.3)
XYZxyz(7.4869, 5.4038, 25.8426)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31388D #8D8631
analogous
#31668D #31388D #58318D
triadic
#31388D #8D3138 #388D31
tetradic
#31388D #8D3166 #8D8631 #318D58
square
#31388D #8D3166 #8D8631 #318D58
split-complementary
#31388D #8D5831 #668D31
monochromatic
#111432 #212660 #31388D #414ABA #6C74CC

Accessibility & contrast

On white

10.09
#31388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#31388D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31388D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31388D#FFFFFF#000000##FFFFFF
##31388D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31388d;
/* rgb */ color: rgb(49, 56, 141);
/* oklch */ color: oklch(38.8% 0.139 274.3);
Tailwind
colors: {
  custom: {
    50: '#746eaf',
    500: '#31388d',
    950: '#000000',
  },
}
SCSS
$custom: #31388d;
$custom-light: #746eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31388d",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 235.435,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.13913,
    "h": 274.3
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31388D

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

Preview Lab → · Contrast checker → · Palette generator →

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