#312091#312091

#312091 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.173 H 279.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#312091
RGBrgb(49, 32, 145)
HSLhsl(249, 64%, 35%)
HSVhsv(249, 78%, 57%)
CMYKcmyk(66.2%, 77.9%, 0%, 43.1%)
CIE-LABlab(22.76, 41.45, -59.04)
CIE-LCHlch(22.76, 72.14, 305.07°)
OKLaboklab(35.24% 0.0288 -0.1705)
OKLCHoklch(35.24% 0.173 279.6)
XYZxyz(6.8923, 3.7298, 27.1393)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312091 #809120
analogous
#204791 #312091 #6A2091
triadic
#312091 #913120 #209131
tetradic
#312091 #912047 #809120 #20916A
square
#312091 #912047 #809120 #20916A
split-complementary
#312091 #916A20 #479120
monochromatic
#0F0A2D #20155F #312091 #422BC3 #6752D9

Accessibility & contrast

On white

12.03
#312091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#312091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312091
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312091#FFFFFF#000000##FFFFFF
##3120911.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312091;
/* rgb */ color: rgb(49, 32, 145);
/* oklch */ color: oklch(35.2% 0.173 279.6);
Tailwind
colors: {
  custom: {
    50: '#775eb2',
    500: '#312091',
    950: '#000000',
  },
}
SCSS
$custom: #312091;
$custom-light: #775eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#312091",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 145
  },
  "hsl": {
    "h": 249.027,
    "s": 63.842,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.17288,
    "h": 279.6
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#312091
secondary
#ACBC51
accent
#E741CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312091

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

Preview Lab → · Contrast checker → · Palette generator →

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