#31378E#31378E

#31378E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.142 H 274.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#31378E
RGBrgb(49, 55, 142)
HSLhsl(236, 49%, 37%)
HSVhsv(236, 65%, 56%)
CMYKcmyk(65.5%, 61.3%, 0%, 44.3%)
CIE-LABlab(27.68, 26.33, -49.13)
CIE-LCHlch(27.68, 55.74, 298.19°)
OKLaboklab(38.7% 0.0114 -0.1414)
OKLCHoklch(38.7% 0.142 274.6)
XYZxyz(7.5137, 5.3377, 26.2203)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31378E #8E8831
analogous
#31668E #31378E #5A318E
triadic
#31378E #8E3137 #378E31
tetradic
#31378E #8E3166 #8E8831 #318E5A
square
#31378E #8E3166 #8E8831 #318E5A
split-complementary
#31378E #8E5A31 #668E31
monochromatic
#121433 #212561 #31378E #4149BB #6D73CD

Accessibility & contrast

On white

10.16
#31378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#31378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31378E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31378E#FFFFFF#000000##FFFFFF
##31378E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31378e;
/* rgb */ color: rgb(49, 55, 142);
/* oklch */ color: oklch(38.7% 0.142 274.6);
Tailwind
colors: {
  custom: {
    50: '#746db0',
    500: '#31378e',
    950: '#000000',
  },
}
SCSS
$custom: #31378e;
$custom-light: #746db0;
$custom-dark: #000000;
JSON
{
  "hex": "#31378e",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 236.129,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.14188,
    "h": 274.6
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#31378E
secondary
#B4AF67
accent
#CF50D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #31378E

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

Preview Lab → · Contrast checker → · Palette generator →

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