#311C9F#311C9F

#311C9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.193 H 278.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#311C9F
RGBrgb(49, 28, 159)
HSLhsl(250, 70%, 37%)
HSVhsv(250, 82%, 62%)
CMYKcmyk(69.2%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.63, 47.76, -66.22)
CIE-LCHlch(23.63, 81.64, 305.80°)
OKLaboklab(36.3% 0.0269 -0.1913)
OKLCHoklch(36.3% 0.193 278)
XYZxyz(7.9379, 3.9860, 33.1452)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C9F #8A9F1C
analogous
#1C499F #311C9F #731C9F
triadic
#311C9F #9F311C #1C9F31
tetradic
#311C9F #9F1C49 #8A9F1C #1C9F73
square
#311C9F #9F1C49 #8A9F1C #1C9F73
split-complementary
#311C9F #9F731C #499F1C
monochromatic
#110A37 #21136B #311C9F #4125D3 #6B54E1

Accessibility & contrast

On white

11.68
#311C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#311C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C9F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C9F#FFFFFF#000000##FFFFFF
##311C9F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311c9f;
/* rgb */ color: rgb(49, 28, 159);
/* oklch */ color: oklch(36.3% 0.193 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a5dbd',
    500: '#311c9f',
    950: '#000000',
  },
}
SCSS
$custom: #311c9f;
$custom-light: #7a5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311c9f",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 249.618,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.19318,
    "h": 278
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#311C9F
secondary
#B2C453
accent
#ED3BD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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