#31387B#31387B

#31387B is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.113 H 275.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#31387B
RGBrgb(49, 56, 123)
HSLhsl(234, 43%, 34%)
HSVhsv(234, 60%, 48%)
CMYKcmyk(60.2%, 54.5%, 0%, 51.8%)
CIE-LABlab(26.48, 18.76, -39.21)
CIE-LCHlch(26.48, 43.47, 295.57°)
OKLaboklab(37.35% 0.0099 -0.1122)
OKLCHoklch(37.35% 0.113 275.1)
XYZxyz(6.2548, 4.9109, 19.3533)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31387B #7B7431
analogous
#315D7B #31387B #4F317B
triadic
#31387B #7B3138 #387B31
tetradic
#31387B #7B315D #7B7431 #317B4F
square
#31387B #7B315D #7B7431 #317B4F
split-complementary
#31387B #7B4F31 #5D7B31
monochromatic
#0E1023 #20244F #31387B #424CA7 #656EC2

Accessibility & contrast

On white

10.59
#31387B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#31387B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31387B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31387B#FFFFFF#000000##FFFFFF
##31387B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427D
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31387b;
/* rgb */ color: rgb(49, 56, 123);
/* oklch */ color: oklch(37.3% 0.113 275.1);
Tailwind
colors: {
  custom: {
    50: '#706ea2',
    500: '#31387b',
    950: '#000000',
  },
}
SCSS
$custom: #31387b;
$custom-light: #706ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#31387b",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 123
  },
  "hsl": {
    "h": 234.324,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37348,
    "c": 0.11268,
    "h": 275.1
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#31387B
secondary
#A9A25F
accent
#C755D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31387B

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

Preview Lab → · Contrast checker → · Palette generator →

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