#31379C#31379C

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

Color values

HEX#31379C
RGBrgb(49, 55, 156)
HSLhsl(237, 52%, 40%)
HSVhsv(237, 69%, 61%)
CMYKcmyk(68.6%, 64.7%, 0%, 38.8%)
CIE-LABlab(28.86, 31.37, -55.77)
CIE-LCHlch(28.86, 63.99, 299.36°)
OKLaboklab(39.95% 0.0108 -0.1609)
OKLCHoklch(39.95% 0.161 273.8)
XYZxyz(8.6316, 5.7849, 32.1078)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31379C #9C9631
analogous
#316C9C #31379C #61319C
triadic
#31379C #9C3137 #379C31
tetradic
#31379C #9C316C #9C9631 #319C61
square
#31379C #9C316C #9C9631 #319C61
split-complementary
#31379C #9C6131 #6C9C31
monochromatic
#14163F #22276D #31379C #454DC5 #7479D3

Accessibility & contrast

On white

9.73
#31379C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#31379C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31379C
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31379C#FFFFFF#000000##FFFFFF
##31379C1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31379c;
/* rgb */ color: rgb(49, 55, 156);
/* oklch */ color: oklch(39.9% 0.161 273.8);
Tailwind
colors: {
  custom: {
    50: '#776eba',
    500: '#31379c',
    950: '#000000',
  },
}
SCSS
$custom: #31379c;
$custom-light: #776eba;
$custom-dark: #000000;
JSON
{
  "hex": "#31379c",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 156
  },
  "hsl": {
    "h": 236.636,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39947,
    "c": 0.16129,
    "h": 273.8
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#31379C
secondary
#BBB76D
accent
#D44CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31379C

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

Preview Lab → · Contrast checker → · Palette generator →

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