#311F9B#311F9B

#311F9B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.186 H 278.2°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#311F9B
RGBrgb(49, 31, 155)
HSLhsl(249, 67%, 36%)
HSVhsv(249, 80%, 61%)
CMYKcmyk(68.4%, 80%, 0%, 39.2%)
CIE-LABlab(23.67, 45.10, -63.70)
CIE-LCHlch(23.67, 78.05, 305.30°)
OKLaboklab(36.2% 0.0266 -0.184)
OKLCHoklch(36.2% 0.186 278.2)
XYZxyz(7.6711, 3.9988, 31.3716)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F9B #899B1F
analogous
#1F4B9B #311F9B #6F1F9B
triadic
#311F9B #9B311F #1F9B31
tetradic
#311F9B #9B1F4B #899B1F #1F9B6F
square
#311F9B #9B1F4B #899B1F #1F9B6F
split-complementary
#311F9B #9B6F1F #4B9B1F
monochromatic
#110B35 #211568 #311F9B #4129CE #6B57DD

Accessibility & contrast

On white

11.67
#311F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311F9B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F9B#FFFFFF#000000##FFFFFF
##311F9B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311f9b;
/* rgb */ color: rgb(49, 31, 155);
/* oklch */ color: oklch(36.2% 0.186 278.2);
Tailwind
colors: {
  custom: {
    50: '#795eba',
    500: '#311f9b',
    950: '#000000',
  },
}
SCSS
$custom: #311f9b;
$custom-light: #795eba;
$custom-dark: #000000;
JSON
{
  "hex": "#311f9b",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 248.71,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.362,
    "c": 0.18594,
    "h": 278.2
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#311F9B
secondary
#B1C155
accent
#EA3ED1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #311F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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