#311E9D#311E9D

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

Color values

HEX#311E9D
RGBrgb(49, 30, 157)
HSLhsl(249, 68%, 37%)
HSVhsv(249, 81%, 62%)
CMYKcmyk(68.8%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.72, 46.20, -64.84)
CIE-LCHlch(23.72, 79.62, 305.47°)
OKLaboklab(36.3% 0.0266 -0.1873)
OKLCHoklch(36.3% 0.189 278.1)
XYZxyz(7.8147, 4.0152, 32.2549)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E9D #8A9D1E
analogous
#1E4B9D #311E9D #711E9D
triadic
#311E9D #9D311E #1E9D31
tetradic
#311E9D #9D1E4B #8A9D1E #1E9D71
square
#311E9D #9D1E4B #8A9D1E #1E9D71
split-complementary
#311E9D #9D711E #4B9D1E
monochromatic
#110A36 #21146A #311E9D #4128D0 #6B57DF

Accessibility & contrast

On white

11.65
#311E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E9D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E9D#FFFFFF#000000##FFFFFF
##311E9D1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311e9d;
/* rgb */ color: rgb(49, 30, 157);
/* oklch */ color: oklch(36.3% 0.189 278.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ebb',
    500: '#311e9d',
    950: '#000000',
  },
}
SCSS
$custom: #311e9d;
$custom-light: #7a5ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#311e9d",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 248.976,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.18918,
    "h": 278.1
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#311E9D
secondary
#B2C254
accent
#EB3DD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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