#31319F#31319F

#31319F is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.172 H 275.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#31319F
RGBrgb(49, 49, 159)
HSLhsl(240, 53%, 41%)
HSVhsv(240, 69%, 62%)
CMYKcmyk(69.2%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.71, 36.22, -59.48)
CIE-LCHlch(27.71, 69.64, 301.34°)
OKLaboklab(39.2% 0.015 -0.1718)
OKLCHoklch(39.2% 0.172 275)
XYZxyz(8.6209, 5.3520, 33.3729)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31319F #9F9F31
analogous
#31689F #31319F #68319F
triadic
#31319F #9F3131 #319F31
tetradic
#31319F #9F3168 #9F9F31 #319F68
square
#31319F #9F3168 #9F9F31 #319F68
split-complementary
#31319F #9F6831 #689F31
monochromatic
#141441 #232370 #31319F #4747C6 #7676D5

Accessibility & contrast

On white

10.14
#31319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31319F
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31319F#FFFFFF#000000##FFFFFF
##31319F1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31319f;
/* rgb */ color: rgb(49, 49, 159);
/* oklch */ color: oklch(39.2% 0.172 275.0);
Tailwind
colors: {
  custom: {
    50: '#796abc',
    500: '#31319f',
    950: '#000000',
  },
}
SCSS
$custom: #31319f;
$custom-light: #796abc;
$custom-dark: #000000;
JSON
{
  "hex": "#31319f",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39196,
    "c": 0.17245,
    "h": 275
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#31319F
secondary
#BDBD6F
accent
#DC4CDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31319F

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

Preview Lab → · Contrast checker → · Palette generator →

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