#311F91#311F91

#311F91 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.174 H 279.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#311F91
RGBrgb(49, 31, 145)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 57%)
CMYKcmyk(66.2%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.57, 41.97, -59.35)
CIE-LCHlch(22.57, 72.69, 305.27°)
OKLaboklab(35.11% 0.0294 -0.1713)
OKLCHoklch(35.11% 0.174 279.7)
XYZxyz(6.8658, 3.6767, 27.1304)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F91 #7F911F
analogous
#1F4691 #311F91 #6A1F91
triadic
#311F91 #91311F #1F9131
tetradic
#311F91 #911F46 #7F911F #1F916A
square
#311F91 #911F46 #7F911F #1F916A
split-complementary
#311F91 #916A1F #46911F
monochromatic
#0F092C #20145F #311F91 #422AC3 #6651DA

Accessibility & contrast

On white

12.10
#311F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#311F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F91
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F91#FFFFFF#000000##FFFFFF
##311F911.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311f91;
/* rgb */ color: rgb(49, 31, 145);
/* oklch */ color: oklch(35.1% 0.174 279.7);
Tailwind
colors: {
  custom: {
    50: '#775eb2',
    500: '#311f91',
    950: '#000000',
  },
}
SCSS
$custom: #311f91;
$custom-light: #775eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311f91",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 249.474,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3511,
    "c": 0.17385,
    "h": 279.7
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#311F91
secondary
#ABBD4F
accent
#E840CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F91

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

Preview Lab → · Contrast checker → · Palette generator →

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