#311E92#311E92

#311E92 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.176 H 279.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#311E92
RGBrgb(49, 30, 146)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 79%, 57%)
CMYKcmyk(66.4%, 79.5%, 0%, 42.7%)
CIE-LABlab(22.50, 42.80, -60.09)
CIE-LCHlch(22.50, 73.77, 305.47°)
OKLaboklab(35.09% 0.0297 -0.1735)
OKLCHoklch(35.09% 0.176 279.7)
XYZxyz(6.9175, 3.6563, 27.5297)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E92 #7F921E
analogous
#1E4592 #311E92 #6B1E92
triadic
#311E92 #92311E #1E9231
tetradic
#311E92 #921E45 #7F921E #1E926B
square
#311E92 #921E45 #7F921E #1E926B
split-complementary
#311E92 #926B1E #45921E
monochromatic
#0F092C #20145F #311E92 #4228C5 #664FDB

Accessibility & contrast

On white

12.13
#311E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#311E92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E92
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E92#FFFFFF#000000##FFFFFF
##311E921.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e92;
/* rgb */ color: rgb(49, 30, 146);
/* oklch */ color: oklch(35.1% 0.176 279.7);
Tailwind
colors: {
  custom: {
    50: '#775db3',
    500: '#311e92',
    950: '#000000',
  },
}
SCSS
$custom: #311e92;
$custom-light: #775db3;
$custom-dark: #000000;
JSON
{
  "hex": "#311e92",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 146
  },
  "hsl": {
    "h": 249.828,
    "s": 65.909,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35092,
    "c": 0.17601,
    "h": 279.7
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#311E92
secondary
#ABBE4E
accent
#E93FCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E92

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

Preview Lab → · Contrast checker → · Palette generator →

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