#31387D#31387D

#31387D is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.116 H 275.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#31387D
RGBrgb(49, 56, 125)
HSLhsl(234, 44%, 34%)
HSVhsv(234, 61%, 49%)
CMYKcmyk(60.8%, 55.2%, 0%, 51%)
CIE-LABlab(26.62, 19.49, -40.24)
CIE-LCHlch(26.62, 44.71, 295.85°)
OKLaboklab(37.5% 0.0101 -0.1153)
OKLCHoklch(37.5% 0.116 275)
XYZxyz(6.3813, 4.9615, 20.0195)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31387D #7D7631
analogous
#315E7D #31387D #50317D
triadic
#31387D #7D3138 #387D31
tetradic
#31387D #7D315E #7D7631 #317D50
square
#31387D #7D315E #7D7631 #317D50
split-complementary
#31387D #7D5031 #5E7D31
monochromatic
#0F1125 #202451 #31387D #424CA9 #666EC3

Accessibility & contrast

On white

10.54
#31387D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31387D
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31387D#FFFFFF#000000##FFFFFF
##31387D1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E427F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31387d;
/* rgb */ color: rgb(49, 56, 125);
/* oklch */ color: oklch(37.5% 0.116 275.0);
Tailwind
colors: {
  custom: {
    50: '#716ea3',
    500: '#31387d',
    950: '#000000',
  },
}
SCSS
$custom: #31387d;
$custom-light: #716ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#31387d",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 125
  },
  "hsl": {
    "h": 234.474,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37504,
    "c": 0.1157,
    "h": 275
  },
  "luminance": 0.04962
}

Semantic roles & 50–950 ramp

primary
#31387D
secondary
#AAA360
accent
#C854D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31387D

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

Preview Lab → · Contrast checker → · Palette generator →

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