#311E97#311E97

#311E97 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.182 H 278.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#311E97
RGBrgb(49, 30, 151)
HSLhsl(249, 67%, 35%)
HSVhsv(249, 80%, 59%)
CMYKcmyk(67.5%, 80.1%, 0%, 40.8%)
CIE-LABlab(23.05, 44.36, -62.26)
CIE-LCHlch(23.05, 76.45, 305.47°)
OKLaboklab(35.64% 0.0283 -0.1798)
OKLCHoklch(35.64% 0.182 278.9)
XYZxyz(7.3150, 3.8153, 29.6231)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E97 #84971E
analogous
#1E4897 #311E97 #6D1E97
triadic
#311E97 #97311E #1E9731
tetradic
#311E97 #971E48 #84971E #1E976D
square
#311E97 #971E48 #84971E #1E976D
split-complementary
#311E97 #976D1E #48971E
monochromatic
#100A31 #201464 #311E97 #4228CA #6853DD

Accessibility & contrast

On white

11.91
#311E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#311E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E97
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E97#FFFFFF#000000##FFFFFF
##311E971.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e97;
/* rgb */ color: rgb(49, 30, 151);
/* oklch */ color: oklch(35.6% 0.182 278.9);
Tailwind
colors: {
  custom: {
    50: '#785eb7',
    500: '#311e97',
    950: '#000000',
  },
}
SCSS
$custom: #311e97;
$custom-light: #785eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#311e97",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 249.421,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35639,
    "c": 0.18203,
    "h": 278.9
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#311E97
secondary
#AEC051
accent
#EA3ECF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E97

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

Preview Lab → · Contrast checker → · Palette generator →

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