#311D9F#311D9F

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

Color values

HEX#311D9F
RGBrgb(49, 29, 159)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(69.2%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.78, 47.29, -65.96)
CIE-LCHlch(23.78, 81.16, 305.64°)
OKLaboklab(36.41% 0.0264 -0.1905)
OKLCHoklch(36.41% 0.192 277.9)
XYZxyz(7.9620, 4.0342, 33.1533)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D9F #8B9F1D
analogous
#1D4A9F #311D9F #721D9F
triadic
#311D9F #9F311D #1D9F31
tetradic
#311D9F #9F1D4A #8B9F1D #1D9F72
square
#311D9F #9F1D4A #8B9F1D #1D9F72
split-complementary
#311D9F #9F721D #4A9F1D
monochromatic
#110A37 #21146B #311D9F #4126D3 #6B56E0

Accessibility & contrast

On white

11.62
#311D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311D9F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D9F#FFFFFF#000000##FFFFFF
##311D9F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #311d9f;
/* rgb */ color: rgb(49, 29, 159);
/* oklch */ color: oklch(36.4% 0.192 277.9);
Tailwind
colors: {
  custom: {
    50: '#7a5ebd',
    500: '#311d9f',
    950: '#000000',
  },
}
SCSS
$custom: #311d9f;
$custom-light: #7a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#311d9f",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 249.231,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36413,
    "c": 0.19237,
    "h": 277.9
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#311D9F
secondary
#B2C454
accent
#EC3CD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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