#31388B#31388B

#31388B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.136 H 274.4°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#31388B
RGBrgb(49, 56, 139)
HSLhsl(235, 48%, 37%)
HSVhsv(235, 65%, 55%)
CMYKcmyk(64.7%, 59.7%, 0%, 45.5%)
CIE-LABlab(27.70, 24.58, -47.24)
CIE-LCHlch(27.70, 53.25, 297.49°)
OKLaboklab(38.64% 0.0105 -0.1359)
OKLCHoklch(38.64% 0.136 274.4)
XYZxyz(7.3395, 5.3448, 25.0660)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31388B #8B8431
analogous
#31658B #31388B #57318B
triadic
#31388B #8B3138 #388B31
tetradic
#31388B #8B3165 #8B8431 #318B57
square
#31388B #8B3165 #8B8431 #318B57
split-complementary
#31388B #8B5731 #658B31
monochromatic
#111431 #21265E #31388B #414AB8 #6B73CB

Accessibility & contrast

On white

10.15
#31388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#31388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31388B
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31388B#FFFFFF#000000##FFFFFF
##31388B1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31388b;
/* rgb */ color: rgb(49, 56, 139);
/* oklch */ color: oklch(38.6% 0.136 274.4);
Tailwind
colors: {
  custom: {
    50: '#746eae',
    500: '#31388b',
    950: '#000000',
  },
}
SCSS
$custom: #31388b;
$custom-light: #746eae;
$custom-dark: #000000;
JSON
{
  "hex": "#31388b",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 235.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.13627,
    "h": 274.4
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#31388B
secondary
#B2AC65
accent
#CD50D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31388B

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

Preview Lab → · Contrast checker → · Palette generator →

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