#31379B#31379B

#31379B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.160 H 273.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#31379B
RGBrgb(49, 55, 155)
HSLhsl(237, 52%, 40%)
HSVhsv(237, 68%, 61%)
CMYKcmyk(68.4%, 64.5%, 0%, 39.2%)
CIE-LABlab(28.78, 31.01, -55.30)
CIE-LCHlch(28.78, 63.41, 299.28°)
OKLaboklab(39.86% 0.0109 -0.1596)
OKLCHoklch(39.86% 0.16 273.9)
XYZxyz(8.5472, 5.7511, 31.6636)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31379B #9B9531
analogous
#316C9B #31379B #60319B
triadic
#31379B #9B3137 #379B31
tetradic
#31379B #9B316C #9B9531 #319B60
square
#31379B #9B316C #9B9531 #319B60
split-complementary
#31379B #9B6031 #6C9B31
monochromatic
#14163E #22266D #31379B #454CC4 #7379D3

Accessibility & contrast

On white

9.77
#31379B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#31379B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31379B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31379B#FFFFFF#000000##FFFFFF
##31379B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31379b;
/* rgb */ color: rgb(49, 55, 155);
/* oklch */ color: oklch(39.9% 0.160 273.9);
Tailwind
colors: {
  custom: {
    50: '#776eb9',
    500: '#31379b',
    950: '#000000',
  },
}
SCSS
$custom: #31379b;
$custom-light: #776eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31379b",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 155
  },
  "hsl": {
    "h": 236.604,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39856,
    "c": 0.15993,
    "h": 273.9
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#31379B
secondary
#BBB66D
accent
#D34CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31379B

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

Preview Lab → · Contrast checker → · Palette generator →

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