#311D9C#311D9C

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

Color values

HEX#311D9C
RGBrgb(49, 29, 156)
HSLhsl(249, 69%, 36%)
HSVhsv(249, 81%, 61%)
CMYKcmyk(68.6%, 81.4%, 0%, 38.8%)
CIE-LABlab(23.44, 46.38, -64.69)
CIE-LCHlch(23.44, 79.60, 305.64°)
OKLaboklab(36.08% 0.0273 -0.1868)
OKLCHoklch(36.08% 0.189 278.3)
XYZxyz(7.7048, 3.9313, 31.7988)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D9C #889C1D
analogous
#1D499C #311D9C #711D9C
triadic
#311D9C #9C311D #1D9C31
tetradic
#311D9C #9C1D49 #889C1D #1D9C71
square
#311D9C #9C1D49 #889C1D #1D9C71
split-complementary
#311D9C #9C711D #499C1D
monochromatic
#110A35 #211368 #311D9C #4127D0 #6A54DF

Accessibility & contrast

On white

11.76
#311D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#311D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D9C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D9C#FFFFFF#000000##FFFFFF
##311D9C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311d9c;
/* rgb */ color: rgb(49, 29, 156);
/* oklch */ color: oklch(36.1% 0.189 278.3);
Tailwind
colors: {
  custom: {
    50: '#7a5dbb',
    500: '#311d9c',
    950: '#000000',
  },
}
SCSS
$custom: #311d9c;
$custom-light: #7a5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#311d9c",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 249.449,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36077,
    "c": 0.18884,
    "h": 278.3
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#311D9C
secondary
#B1C252
accent
#EB3CD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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