#31378B#31378B

#31378B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.138 H 274.8°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#31378B
RGBrgb(49, 55, 139)
HSLhsl(236, 48%, 37%)
HSVhsv(236, 65%, 55%)
CMYKcmyk(64.7%, 60.4%, 0%, 45.5%)
CIE-LABlab(27.43, 25.25, -47.67)
CIE-LCHlch(27.43, 53.94, 297.91°)
OKLaboklab(38.45% 0.0115 -0.1371)
OKLCHoklch(38.45% 0.138 274.8)
XYZxyz(7.2915, 5.2488, 25.0500)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31378B #8B8531
analogous
#31648B #31378B #58318B
triadic
#31378B #8B3137 #378B31
tetradic
#31378B #8B3164 #8B8531 #318B58
square
#31378B #8B3164 #8B8531 #318B58
split-complementary
#31378B #8B5831 #648B31
monochromatic
#111331 #21255E #31378B #4149B8 #6B72CB

Accessibility & contrast

On white

10.24
#31378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#31378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31378B
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31378B#FFFFFF#000000##FFFFFF
##31378B1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31378b;
/* rgb */ color: rgb(49, 55, 139);
/* oklch */ color: oklch(38.4% 0.138 274.8);
Tailwind
colors: {
  custom: {
    50: '#746dae',
    500: '#31378b',
    950: '#000000',
  },
}
SCSS
$custom: #31378b;
$custom-light: #746dae;
$custom-dark: #000000;
JSON
{
  "hex": "#31378b",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 236,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38447,
    "c": 0.13761,
    "h": 274.8
  },
  "luminance": 0.05249
}

Semantic roles & 50–950 ramp

primary
#31378B
secondary
#B2AD65
accent
#CE50D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31378B

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

Preview Lab → · Contrast checker → · Palette generator →

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