#312591#312591

#312591 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.168 H 278.8°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#312591
RGBrgb(49, 37, 145)
HSLhsl(247, 59%, 36%)
HSVhsv(247, 74%, 57%)
CMYKcmyk(66.2%, 74.5%, 0%, 43.1%)
CIE-LABlab(23.74, 38.68, -57.43)
CIE-LCHlch(23.74, 69.24, 303.96°)
OKLaboklab(35.93% 0.0256 -0.1658)
OKLCHoklch(35.93% 0.168 278.8)
XYZxyz(7.0374, 4.0199, 27.1876)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312591 #859125
analogous
#254F91 #312591 #672591
triadic
#312591 #913125 #259131
tetradic
#312591 #91254F #859125 #259167
square
#312591 #91254F #859125 #259167
split-complementary
#312591 #916725 #4F9125
monochromatic
#100C2F #211960 #312591 #4131C2 #695BD5

Accessibility & contrast

On white

11.64
#312591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#312591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312591
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312591#FFFFFF#000000##FFFFFF
##3125911.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312591;
/* rgb */ color: rgb(49, 37, 145);
/* oklch */ color: oklch(35.9% 0.168 278.8);
Tailwind
colors: {
  custom: {
    50: '#7761b2',
    500: '#312591',
    950: '#000000',
  },
}
SCSS
$custom: #312591;
$custom-light: #7761b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312591",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 246.667,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35931,
    "c": 0.16775,
    "h": 278.8
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#312591
secondary
#AFBA58
accent
#E345D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312591

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

Preview Lab → · Contrast checker → · Palette generator →

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