#312191#312191

#312191 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.172 H 279.4°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#312191
RGBrgb(49, 33, 145)
HSLhsl(249, 63%, 35%)
HSVhsv(249, 77%, 57%)
CMYKcmyk(66.2%, 77.2%, 0%, 43.1%)
CIE-LABlab(22.95, 40.91, -58.73)
CIE-LCHlch(22.95, 71.58, 304.86°)
OKLaboklab(35.37% 0.0282 -0.1696)
OKLCHoklch(35.37% 0.172 279.4)
XYZxyz(6.9197, 3.7845, 27.1484)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312191 #819121
analogous
#214991 #312191 #692191
triadic
#312191 #913121 #219131
tetradic
#312191 #912149 #819121 #219169
square
#312191 #912149 #819121 #219169
split-complementary
#312191 #916921 #499121
monochromatic
#0F0A2D #20165F #312191 #422CC3 #6754D8

Accessibility & contrast

On white

11.95
#312191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#312191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312191
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312191#FFFFFF#000000##FFFFFF
##3121911.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312191;
/* rgb */ color: rgb(49, 33, 145);
/* oklch */ color: oklch(35.4% 0.172 279.4);
Tailwind
colors: {
  custom: {
    50: '#775fb2',
    500: '#312191',
    950: '#000000',
  },
}
SCSS
$custom: #312191;
$custom-light: #775fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#312191",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 248.571,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35372,
    "c": 0.17189,
    "h": 279.4
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#312191
secondary
#ADBC52
accent
#E642CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312191

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

Preview Lab → · Contrast checker → · Palette generator →

#312191 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva