#311F9F#311F9F

#311F9F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.191 H 277.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#311F9F
RGBrgb(49, 31, 159)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 81%, 62%)
CMYKcmyk(69.2%, 80.5%, 0%, 37.6%)
CIE-LABlab(24.11, 46.33, -65.41)
CIE-LCHlch(24.11, 80.16, 305.31°)
OKLaboklab(36.64% 0.0255 -0.189)
OKLCHoklch(36.64% 0.191 277.7)
XYZxyz(8.0126, 4.1354, 33.1701)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F9F #8D9F1F
analogous
#1F4D9F #311F9F #711F9F
triadic
#311F9F #9F311F #1F9F31
tetradic
#311F9F #9F1F4D #8D9F1F #1F9F71
square
#311F9F #9F1F4D #8D9F1F #1F9F71
split-complementary
#311F9F #9F711F #4D9F1F
monochromatic
#110B39 #21156C #311F9F #4129D2 #6C5ADF

Accessibility & contrast

On white

11.49
#311F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#311F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F9F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F9F#FFFFFF#000000##FFFFFF
##311F9F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #311f9f;
/* rgb */ color: rgb(49, 31, 159);
/* oklch */ color: oklch(36.6% 0.191 277.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fbd',
    500: '#311f9f',
    950: '#000000',
  },
}
SCSS
$custom: #311f9f;
$custom-light: #7a5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311f9f",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 248.438,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36642,
    "c": 0.1907,
    "h": 277.7
  },
  "luminance": 0.04136
}

Semantic roles & 50–950 ramp

primary
#311F9F
secondary
#B4C357
accent
#EA3ED2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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