#311E9E#311E9E

#311E9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.190 H 277.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#311E9E
RGBrgb(49, 30, 158)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(69%, 81%, 0%, 38%)
CIE-LABlab(23.83, 46.51, -65.26)
CIE-LCHlch(23.83, 80.14, 305.48°)
OKLaboklab(36.41% 0.0263 -0.1885)
OKLCHoklch(36.41% 0.19 277.9)
XYZxyz(7.9005, 4.0494, 32.7064)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E9E #8B9E1E
analogous
#1E4B9E #311E9E #711E9E
triadic
#311E9E #9E311E #1E9E31
tetradic
#311E9E #9E1E4B #8B9E1E #1E9E71
square
#311E9E #9E1E4B #8B9E1E #1E9E71
split-complementary
#311E9E #9E711E #4B9E1E
monochromatic
#110A37 #21146B #311E9E #4128D1 #6B57DF

Accessibility & contrast

On white

11.60
#311E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#311E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E9E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E9E#FFFFFF#000000##FFFFFF
##311E9E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #311e9e;
/* rgb */ color: rgb(49, 30, 158);
/* oklch */ color: oklch(36.4% 0.190 277.9);
Tailwind
colors: {
  custom: {
    50: '#7a5ebc',
    500: '#311e9e',
    950: '#000000',
  },
}
SCSS
$custom: #311e9e;
$custom-light: #7a5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#311e9e",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 248.906,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.19036,
    "h": 277.9
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#311E9E
secondary
#B2C355
accent
#EB3DD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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