#311F9A#311F9A

#311F9A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.185 H 278.4°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#311F9A
RGBrgb(49, 31, 154)
HSLhsl(249, 66%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(68.2%, 79.9%, 0%, 39.6%)
CIE-LABlab(23.56, 44.79, -63.27)
CIE-LCHlch(23.56, 77.52, 305.29°)
OKLaboklab(36.09% 0.0269 -0.1828)
OKLCHoklch(36.09% 0.185 278.4)
XYZxyz(7.5875, 3.9654, 30.9311)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F9A #889A1F
analogous
#1F4B9A #311F9A #6F1F9A
triadic
#311F9A #9A311F #1F9A31
tetradic
#311F9A #9A1F4B #889A1F #1F9A6F
square
#311F9A #9A1F4B #889A1F #1F9A6F
split-complementary
#311F9A #9A6F1F #4B9A1F
monochromatic
#110A34 #211567 #311F9A #4129CD #6A56DD

Accessibility & contrast

On white

11.71
#311F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311F9A
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F9A#FFFFFF#000000##FFFFFF
##311F9A1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311f9a;
/* rgb */ color: rgb(49, 31, 154);
/* oklch */ color: oklch(36.1% 0.185 278.4);
Tailwind
colors: {
  custom: {
    50: '#795eb9',
    500: '#311f9a',
    950: '#000000',
  },
}
SCSS
$custom: #311f9a;
$custom-light: #795eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#311f9a",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 248.78,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36089,
    "c": 0.18474,
    "h": 278.4
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#311F9A
secondary
#B1C154
accent
#E93ED0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #311F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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