#31378D#31378D

#31378D is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.140 H 274.7°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#31378D
RGBrgb(49, 55, 141)
HSLhsl(236, 48%, 37%)
HSVhsv(236, 65%, 55%)
CMYKcmyk(65.2%, 61%, 0%, 44.7%)
CIE-LABlab(27.59, 25.97, -48.64)
CIE-LCHlch(27.59, 55.14, 298.10°)
OKLaboklab(38.62% 0.0115 -0.14)
OKLCHoklch(38.62% 0.14 274.7)
XYZxyz(7.4389, 5.3078, 25.8266)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31378D #8D8731
analogous
#31658D #31378D #59318D
triadic
#31378D #8D3137 #378D31
tetradic
#31378D #8D3165 #8D8731 #318D59
square
#31378D #8D3165 #8D8731 #318D59
split-complementary
#31378D #8D5931 #658D31
monochromatic
#111432 #212560 #31378D #4149BA #6C73CC

Accessibility & contrast

On white

10.19
#31378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#31378D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31378D
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31378D#FFFFFF#000000##FFFFFF
##31378D1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31378d;
/* rgb */ color: rgb(49, 55, 141);
/* oklch */ color: oklch(38.6% 0.140 274.7);
Tailwind
colors: {
  custom: {
    50: '#746daf',
    500: '#31378d',
    950: '#000000',
  },
}
SCSS
$custom: #31378d;
$custom-light: #746daf;
$custom-dark: #000000;
JSON
{
  "hex": "#31378d",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 236.087,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38618,
    "c": 0.14046,
    "h": 274.7
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31378D

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

Preview Lab → · Contrast checker → · Palette generator →

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