#31319E#31319E

#31319E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.171 H 275.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#31319E
RGBrgb(49, 49, 158)
HSLhsl(240, 53%, 41%)
HSVhsv(240, 69%, 62%)
CMYKcmyk(69%, 69%, 0%, 38%)
CIE-LABlab(27.62, 35.88, -59.02)
CIE-LCHlch(27.62, 69.07, 301.29°)
OKLaboklab(39.1% 0.0151 -0.1705)
OKLCHoklch(39.1% 0.171 275.1)
XYZxyz(8.5345, 5.3174, 32.9177)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31319E #9E9E31
analogous
#31679E #31319E #67319E
triadic
#31319E #9E3131 #319E31
tetradic
#31319E #9E3167 #9E9E31 #319E67
square
#31319E #9E3167 #9E9E31 #319E67
split-complementary
#31319E #9E6731 #679E31
monochromatic
#141441 #23236F #31319E #4646C6 #7575D4

Accessibility & contrast

On white

10.18
#31319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#31319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31319E
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31319E#FFFFFF#000000##FFFFFF
##31319E1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31319e;
/* rgb */ color: rgb(49, 49, 158);
/* oklch */ color: oklch(39.1% 0.171 275.1);
Tailwind
colors: {
  custom: {
    50: '#786abc',
    500: '#31319e',
    950: '#000000',
  },
}
SCSS
$custom: #31319e;
$custom-light: #786abc;
$custom-dark: #000000;
JSON
{
  "hex": "#31319e",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39099,
    "c": 0.17115,
    "h": 275.1
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#31319E
secondary
#BCBC6E
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31319E

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

Preview Lab → · Contrast checker → · Palette generator →

#31319E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva