#311F96#311F96

#311F96 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.180 H 279.0°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#311F96
RGBrgb(49, 31, 150)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 79%, 59%)
CMYKcmyk(67.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.12, 43.54, -61.54)
CIE-LCHlch(23.12, 75.39, 305.28°)
OKLaboklab(35.65% 0.028 -0.1777)
OKLCHoklch(35.65% 0.18 279)
XYZxyz(7.2599, 3.8343, 29.2058)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F96 #84961F
analogous
#1F4896 #311F96 #6D1F96
triadic
#311F96 #96311F #1F9631
tetradic
#311F96 #961F48 #84961F #1F966D
square
#311F96 #961F48 #84961F #1F966D
split-complementary
#311F96 #966D1F #48961F
monochromatic
#100A31 #201563 #311F96 #4229C9 #6854DC

Accessibility & contrast

On white

11.88
#311F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#311F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F96
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F96#FFFFFF#000000##FFFFFF
##311F961.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311f96;
/* rgb */ color: rgb(49, 31, 150);
/* oklch */ color: oklch(35.7% 0.180 279.0);
Tailwind
colors: {
  custom: {
    50: '#785eb6',
    500: '#311f96',
    950: '#000000',
  },
}
SCSS
$custom: #311f96;
$custom-light: #785eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#311f96",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 249.076,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35652,
    "c": 0.17993,
    "h": 279
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#311F96
secondary
#AEBF52
accent
#E93FCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F96

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

Preview Lab → · Contrast checker → · Palette generator →

#311F96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva