#31379F#31379F

#31379F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.165 H 273.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#31379F
RGBrgb(49, 55, 159)
HSLhsl(237, 53%, 41%)
HSVhsv(237, 69%, 62%)
CMYKcmyk(69.2%, 65.4%, 0%, 37.6%)
CIE-LABlab(29.13, 32.44, -57.16)
CIE-LCHlch(29.13, 65.72, 299.57°)
OKLaboklab(40.22% 0.0106 -0.165)
OKLCHoklch(40.22% 0.165 273.7)
XYZxyz(8.8887, 5.8877, 33.4622)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31379F #9F9931
analogous
#316E9F #31379F #62319F
triadic
#31379F #9F3137 #379F31
tetradic
#31379F #9F316E #9F9931 #319F62
square
#31379F #9F316E #9F9931 #319F62
split-complementary
#31379F #9F6231 #6E9F31
monochromatic
#141741 #232770 #31379F #474EC6 #767BD5

Accessibility & contrast

On white

9.64
#31379F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#31379F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31379F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31379F#FFFFFF#000000##FFFFFF
##31379F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31379f;
/* rgb */ color: rgb(49, 55, 159);
/* oklch */ color: oklch(40.2% 0.165 273.7);
Tailwind
colors: {
  custom: {
    50: '#786ebc',
    500: '#31379f',
    950: '#000000',
  },
}
SCSS
$custom: #31379f;
$custom-light: #786ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#31379f",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 159
  },
  "hsl": {
    "h": 236.727,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40222,
    "c": 0.16534,
    "h": 273.7
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#31379F
secondary
#BDB96F
accent
#D44CDC
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31379F

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

Preview Lab → · Contrast checker → · Palette generator →

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