#311F95#311F95

#311F95 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.179 H 279.1°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#311F95
RGBrgb(49, 31, 149)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 79%, 58%)
CMYKcmyk(67.1%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.01, 43.23, -61.11)
CIE-LCHlch(23.01, 74.85, 305.28°)
OKLaboklab(35.54% 0.0283 -0.1765)
OKLCHoklch(35.54% 0.179 279.1)
XYZxyz(7.1797, 3.8023, 28.7835)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F95 #83951F
analogous
#1F4895 #311F95 #6C1F95
triadic
#311F95 #95311F #1F9531
tetradic
#311F95 #951F48 #83951F #1F956C
square
#311F95 #951F48 #83951F #1F956C
split-complementary
#311F95 #956C1F #48951F
monochromatic
#100A30 #201462 #311F95 #422AC8 #6853DB

Accessibility & contrast

On white

11.93
#311F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#311F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F95
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F95#FFFFFF#000000##FFFFFF
##311F951.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311f95;
/* rgb */ color: rgb(49, 31, 149);
/* oklch */ color: oklch(35.5% 0.179 279.1);
Tailwind
colors: {
  custom: {
    50: '#785eb5',
    500: '#311f95',
    950: '#000000',
  },
}
SCSS
$custom: #311f95;
$custom-light: #785eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311f95",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 249.153,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35543,
    "c": 0.17872,
    "h": 279.1
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#311F95
secondary
#AEBF51
accent
#E93FCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F95

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

Preview Lab → · Contrast checker → · Palette generator →

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