#31387F#31387F

#31387F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.7% C 0.119 H 274.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#31387F
RGBrgb(49, 56, 127)
HSLhsl(235, 44%, 35%)
HSVhsv(235, 61%, 50%)
CMYKcmyk(61.4%, 55.9%, 0%, 50.2%)
CIE-LABlab(26.77, 20.21, -41.25)
CIE-LCHlch(26.77, 45.94, 296.11°)
OKLaboklab(37.66% 0.0102 -0.1183)
OKLCHoklch(37.66% 0.119 274.9)
XYZxyz(6.5103, 5.0131, 20.6991)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31387F #7F7831
analogous
#315F7F #31387F #51317F
triadic
#31387F #7F3138 #387F31
tetradic
#31387F #7F315F #7F7831 #317F51
square
#31387F #7F315F #7F7831 #317F51
split-complementary
#31387F #7F5131 #5F7F31
monochromatic
#0F1127 #202553 #31387F #424BAB #666FC4

Accessibility & contrast

On white

10.49
#31387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#31387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31387F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31387F#FFFFFF#000000##FFFFFF
##31387F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31387f;
/* rgb */ color: rgb(49, 56, 127);
/* oklch */ color: oklch(37.7% 0.119 274.9);
Tailwind
colors: {
  custom: {
    50: '#716ea5',
    500: '#31387f',
    950: '#000000',
  },
}
SCSS
$custom: #31387f;
$custom-light: #716ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#31387f",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 234.615,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37661,
    "c": 0.1187,
    "h": 274.9
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#31387F
secondary
#ABA560
accent
#C954D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31387F

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

Preview Lab → · Contrast checker → · Palette generator →

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