#311D97#311D97

#311D97 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.183 H 279.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#311D97
RGBrgb(49, 29, 151)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 59%)
CMYKcmyk(67.5%, 80.8%, 0%, 40.8%)
CIE-LABlab(22.88, 44.85, -62.55)
CIE-LCHlch(22.88, 76.97, 305.64°)
OKLaboklab(35.52% 0.0288 -0.1806)
OKLCHoklch(35.52% 0.183 279.1)
XYZxyz(7.2901, 3.7655, 29.6148)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D97 #83971D
analogous
#1D4697 #311D97 #6E1D97
triadic
#311D97 #97311D #1D9731
tetradic
#311D97 #971D46 #83971D #1D976E
square
#311D97 #971D46 #83971D #1D976E
split-complementary
#311D97 #976E1D #46971D
monochromatic
#100930 #201364 #311D97 #4227CA #6851DE

Accessibility & contrast

On white

11.98
#311D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D97
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D97#FFFFFF#000000##FFFFFF
##311D971.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311d97;
/* rgb */ color: rgb(49, 29, 151);
/* oklch */ color: oklch(35.5% 0.183 279.1);
Tailwind
colors: {
  custom: {
    50: '#795db7',
    500: '#311d97',
    950: '#000000',
  },
}
SCSS
$custom: #311d97;
$custom-light: #795db7;
$custom-dark: #000000;
JSON
{
  "hex": "#311d97",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 249.836,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3552,
    "c": 0.18291,
    "h": 279.1
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#311D97
secondary
#AEC04F
accent
#EB3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311D97

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

Preview Lab → · Contrast checker → · Palette generator →

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