#31387C#31387C

#31387C is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.4% C 0.114 H 275.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#31387C
RGBrgb(49, 56, 124)
HSLhsl(234, 43%, 34%)
HSVhsv(234, 60%, 49%)
CMYKcmyk(60.5%, 54.8%, 0%, 51.4%)
CIE-LABlab(26.55, 19.13, -39.72)
CIE-LCHlch(26.55, 44.09, 295.71°)
OKLaboklab(37.43% 0.01 -0.1137)
OKLCHoklch(37.43% 0.114 275)
XYZxyz(6.3177, 4.9361, 19.6847)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31387C #7C7531
analogous
#315E7C #31387C #50317C
triadic
#31387C #7C3138 #387C31
tetradic
#31387C #7C315E #7C7531 #317C50
square
#31387C #7C315E #7C7531 #317C50
split-complementary
#31387C #7C5031 #5E7C31
monochromatic
#0E1024 #202450 #31387C #424CA8 #656EC2

Accessibility & contrast

On white

10.57
#31387C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#31387C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31387C
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31387C#FFFFFF#000000##FFFFFF
##31387C1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31387c;
/* rgb */ color: rgb(49, 56, 124);
/* oklch */ color: oklch(37.4% 0.114 275.0);
Tailwind
colors: {
  custom: {
    50: '#716ea2',
    500: '#31387c',
    950: '#000000',
  },
}
SCSS
$custom: #31387c;
$custom-light: #716ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#31387c",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 124
  },
  "hsl": {
    "h": 234.4,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37426,
    "c": 0.11419,
    "h": 275
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#31387C
secondary
#AAA35F
accent
#C755D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31387C

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

Preview Lab → · Contrast checker → · Palette generator →

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