#311F92#311F92

#311F92 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.175 H 279.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#311F92
RGBrgb(49, 31, 146)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 57%)
CMYKcmyk(66.4%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.68, 42.29, -59.79)
CIE-LCHlch(22.68, 73.23, 305.27°)
OKLaboklab(35.22% 0.0291 -0.1726)
OKLCHoklch(35.22% 0.175 279.6)
XYZxyz(6.9433, 3.7077, 27.5383)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F92 #80921F
analogous
#1F4792 #311F92 #6A1F92
triadic
#311F92 #92311F #1F9231
tetradic
#311F92 #921F47 #80921F #1F926A
square
#311F92 #921F47 #80921F #1F926A
split-complementary
#311F92 #926A1F #47921F
monochromatic
#0F0A2D #201460 #311F92 #422AC4 #6751DA

Accessibility & contrast

On white

12.06
#311F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#311F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F92
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F92#FFFFFF#000000##FFFFFF
##311F921.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311f92;
/* rgb */ color: rgb(49, 31, 146);
/* oklch */ color: oklch(35.2% 0.175 279.6);
Tailwind
colors: {
  custom: {
    50: '#775eb3',
    500: '#311f92',
    950: '#000000',
  },
}
SCSS
$custom: #311f92;
$custom-light: #775eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#311f92",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 249.391,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35218,
    "c": 0.17506,
    "h": 279.6
  },
  "luminance": 0.03708
}

Semantic roles & 50–950 ramp

primary
#311F92
secondary
#ACBD50
accent
#E840CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F92

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

Preview Lab → · Contrast checker → · Palette generator →

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