#311E9F#311E9F

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

Color values

HEX#311E9F
RGBrgb(49, 30, 159)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(69.2%, 81.1%, 0%, 37.6%)
CIE-LABlab(23.95, 46.82, -65.69)
CIE-LCHlch(23.95, 80.66, 305.48°)
OKLaboklab(36.53% 0.026 -0.1898)
OKLCHoklch(36.53% 0.192 277.8)
XYZxyz(7.9869, 4.0840, 33.1616)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E9F #8C9F1E
analogous
#1E4C9F #311E9F #721E9F
triadic
#311E9F #9F311E #1E9F31
tetradic
#311E9F #9F1E4C #8C9F1E #1E9F72
square
#311E9F #9F1E4C #8C9F1E #1E9F72
split-complementary
#311E9F #9F721E #4C9F1E
monochromatic
#110B38 #21146C #311E9F #4128D2 #6C58DF

Accessibility & contrast

On white

11.56
#311E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E9F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E9F#FFFFFF#000000##FFFFFF
##311E9F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e9f;
/* rgb */ color: rgb(49, 30, 159);
/* oklch */ color: oklch(36.5% 0.192 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ebd',
    500: '#311e9f',
    950: '#000000',
  },
}
SCSS
$custom: #311e9f;
$custom-light: #7a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#311e9f",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 248.837,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36526,
    "c": 0.19155,
    "h": 277.8
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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