#311C9D#311C9D

#311C9D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.191 H 278.3°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#311C9D
RGBrgb(49, 28, 157)
HSLhsl(250, 70%, 36%)
HSVhsv(250, 82%, 62%)
CMYKcmyk(68.8%, 82.2%, 0%, 38.4%)
CIE-LABlab(23.40, 47.15, -65.38)
CIE-LCHlch(23.40, 80.61, 305.80°)
OKLaboklab(36.08% 0.0275 -0.1888)
OKLCHoklch(36.08% 0.191 278.3)
XYZxyz(7.7657, 3.9171, 32.2386)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C9D #889D1C
analogous
#1C489D #311C9D #721C9D
triadic
#311C9D #9D311C #1C9D31
tetradic
#311C9D #9D1C48 #889D1C #1C9D72
square
#311C9D #9D1C48 #889D1C #1C9D72
split-complementary
#311C9D #9D721C #489D1C
monochromatic
#110935 #211369 #311C9D #4125D1 #6A53E0

Accessibility & contrast

On white

11.77
#311C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#311C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C9D
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C9D#FFFFFF#000000##FFFFFF
##311C9D1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311c9d;
/* rgb */ color: rgb(49, 28, 157);
/* oklch */ color: oklch(36.1% 0.191 278.3);
Tailwind
colors: {
  custom: {
    50: '#7a5dbb',
    500: '#311c9d',
    950: '#000000',
  },
}
SCSS
$custom: #311c9d;
$custom-light: #7a5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#311c9d",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 249.767,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36077,
    "c": 0.19084,
    "h": 278.3
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#311C9D
secondary
#B1C351
accent
#ED3BD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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