#311F93#311F93

#311F93 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.176 H 279.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#311F93
RGBrgb(49, 31, 147)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 58%)
CMYKcmyk(66.7%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.79, 42.60, -60.23)
CIE-LCHlch(22.79, 73.77, 305.27°)
OKLaboklab(35.33% 0.0289 -0.1739)
OKLCHoklch(35.33% 0.176 279.4)
XYZxyz(7.0214, 3.7390, 27.9498)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F93 #81931F
analogous
#1F4793 #311F93 #6B1F93
triadic
#311F93 #93311F #1F9331
tetradic
#311F93 #931F47 #81931F #1F936B
square
#311F93 #931F47 #81931F #1F936B
split-complementary
#311F93 #936B1F #47931F
monochromatic
#0F0A2E #201460 #311F93 #422AC6 #6752DA

Accessibility & contrast

On white

12.01
#311F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F93
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F93#FFFFFF#000000##FFFFFF
##311F931.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311f93;
/* rgb */ color: rgb(49, 31, 147);
/* oklch */ color: oklch(35.3% 0.176 279.4);
Tailwind
colors: {
  custom: {
    50: '#775eb4',
    500: '#311f93',
    950: '#000000',
  },
}
SCSS
$custom: #311f93;
$custom-light: #775eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#311f93",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 249.31,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35326,
    "c": 0.17629,
    "h": 279.4
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#311F93
secondary
#ADBE50
accent
#E840CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F93

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

Preview Lab → · Contrast checker → · Palette generator →

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