#311F97#311F97

#311F97 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.181 H 278.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#311F97
RGBrgb(49, 31, 151)
HSLhsl(249, 66%, 36%)
HSVhsv(249, 79%, 59%)
CMYKcmyk(67.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.23, 43.85, -61.98)
CIE-LCHlch(23.23, 75.92, 305.28°)
OKLaboklab(35.76% 0.0278 -0.179)
OKLCHoklch(35.76% 0.181 278.8)
XYZxyz(7.3407, 3.8667, 29.6317)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F97 #85971F
analogous
#1F4997 #311F97 #6D1F97
triadic
#311F97 #97311F #1F9731
tetradic
#311F97 #971F49 #85971F #1F976D
square
#311F97 #971F49 #85971F #1F976D
split-complementary
#311F97 #976D1F #49971F
monochromatic
#100A31 #211564 #311F97 #4129CA #6954DC

Accessibility & contrast

On white

11.84
#311F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311F97
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F97#FFFFFF#000000##FFFFFF
##311F971.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311f97;
/* rgb */ color: rgb(49, 31, 151);
/* oklch */ color: oklch(35.8% 0.181 278.8);
Tailwind
colors: {
  custom: {
    50: '#785eb7',
    500: '#311f97',
    950: '#000000',
  },
}
SCSS
$custom: #311f97;
$custom-light: #785eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#311f97",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 249,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35761,
    "c": 0.18113,
    "h": 278.8
  },
  "luminance": 0.03867
}

Semantic roles & 50–950 ramp

primary
#311F97
secondary
#AFBF52
accent
#E93FCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #311F97

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

Preview Lab → · Contrast checker → · Palette generator →

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