#31378F#31378F

#31378F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.143 H 274.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#31378F
RGBrgb(49, 55, 143)
HSLhsl(236, 49%, 38%)
HSVhsv(236, 66%, 56%)
CMYKcmyk(65.7%, 61.5%, 0%, 43.9%)
CIE-LABlab(27.76, 26.69, -49.61)
CIE-LCHlch(27.76, 56.33, 298.28°)
OKLaboklab(38.79% 0.0114 -0.1428)
OKLCHoklch(38.79% 0.143 274.6)
XYZxyz(7.5891, 5.3679, 26.6174)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31378F #8F8931
analogous
#31668F #31378F #5A318F
triadic
#31378F #8F3137 #378F31
tetradic
#31378F #8F3166 #8F8931 #318F5A
square
#31378F #8F3166 #8F8931 #318F5A
split-complementary
#31378F #8F5A31 #668F31
monochromatic
#121434 #212561 #31378F #4149BD #6D73CD

Accessibility & contrast

On white

10.13
#31378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31378F
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31378F#FFFFFF#000000##FFFFFF
##31378F1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31378f;
/* rgb */ color: rgb(49, 55, 143);
/* oklch */ color: oklch(38.8% 0.143 274.6);
Tailwind
colors: {
  custom: {
    50: '#746db1',
    500: '#31378f',
    950: '#000000',
  },
}
SCSS
$custom: #31378f;
$custom-light: #746db1;
$custom-dark: #000000;
JSON
{
  "hex": "#31378f",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 236.17,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3879,
    "c": 0.1433,
    "h": 274.6
  },
  "luminance": 0.05369
}

Semantic roles & 50–950 ramp

primary
#31378F
secondary
#B5B067
accent
#D04FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #31378F

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

Preview Lab → · Contrast checker → · Palette generator →

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