#311F9E#311F9E

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

Color values

HEX#311F9E
RGBrgb(49, 31, 158)
HSLhsl(249, 67%, 37%)
HSVhsv(249, 80%, 62%)
CMYKcmyk(69%, 80.4%, 0%, 38%)
CIE-LABlab(24.00, 46.02, -64.99)
CIE-LCHlch(24.00, 79.63, 305.31°)
OKLaboklab(36.53% 0.0258 -0.1877)
OKLCHoklch(36.53% 0.19 277.8)
XYZxyz(7.9262, 4.1009, 32.7150)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F9E #8C9E1F
analogous
#1F4D9E #311F9E #711F9E
triadic
#311F9E #9E311F #1F9E31
tetradic
#311F9E #9E1F4D #8C9E1F #1F9E71
square
#311F9E #9E1F4D #8C9E1F #1F9E71
split-complementary
#311F9E #9E711F #4D9E1F
monochromatic
#110B38 #21156B #311F9E #4129D1 #6C59DE

Accessibility & contrast

On white

11.54
#311F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#311F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F9E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F9E#FFFFFF#000000##FFFFFF
##311F9E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #311f9e;
/* rgb */ color: rgb(49, 31, 158);
/* oklch */ color: oklch(36.5% 0.190 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a5fbc',
    500: '#311f9e',
    950: '#000000',
  },
}
SCSS
$custom: #311f9e;
$custom-light: #7a5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#311f9e",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 248.504,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36531,
    "c": 0.18951,
    "h": 277.8
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#311F9E
secondary
#B3C256
accent
#EA3ED2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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