#31388C#31388C

#31388C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.138 H 274.4°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#31388C
RGBrgb(49, 56, 140)
HSLhsl(235, 48%, 37%)
HSVhsv(235, 65%, 55%)
CMYKcmyk(65%, 60%, 0%, 45.1%)
CIE-LABlab(27.77, 24.94, -47.73)
CIE-LCHlch(27.77, 53.85, 297.59°)
OKLaboklab(38.73% 0.0105 -0.1373)
OKLCHoklch(38.73% 0.138 274.4)
XYZxyz(7.4129, 5.3741, 25.4525)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31388C #8C8531
analogous
#31658C #31388C #58318C
triadic
#31388C #8C3138 #388C31
tetradic
#31388C #8C3165 #8C8531 #318C58
square
#31388C #8C3165 #8C8531 #318C58
split-complementary
#31388C #8C5831 #658C31
monochromatic
#111431 #21265F #31388C #414AB9 #6C73CC

Accessibility & contrast

On white

10.12
#31388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31388C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31388C#FFFFFF#000000##FFFFFF
##31388C1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31388c;
/* rgb */ color: rgb(49, 56, 140);
/* oklch */ color: oklch(38.7% 0.138 274.4);
Tailwind
colors: {
  custom: {
    50: '#746eae',
    500: '#31388c',
    950: '#000000',
  },
}
SCSS
$custom: #31388c;
$custom-light: #746eae;
$custom-dark: #000000;
JSON
{
  "hex": "#31388c",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 235.385,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38726,
    "c": 0.1377,
    "h": 274.4
  },
  "luminance": 0.05375
}

Semantic roles & 50–950 ramp

primary
#31388C
secondary
#B3AD66
accent
#CD50D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31388C

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

Preview Lab → · Contrast checker → · Palette generator →

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