#312799#312799

#312799 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.176 H 277.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#312799
RGBrgb(49, 39, 153)
HSLhsl(245, 59%, 38%)
HSVhsv(245, 75%, 60%)
CMYKcmyk(68%, 74.5%, 0%, 40%)
CIE-LABlab(24.96, 40.16, -60.34)
CIE-LCHlch(24.96, 72.48, 303.65°)
OKLaboklab(37.05% 0.0226 -0.1743)
OKLCHoklch(37.05% 0.176 277.4)
XYZxyz(7.7400, 4.4032, 30.5728)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312799 #8F9927
analogous
#275699 #312799 #6A2799
triadic
#312799 #993127 #279931
tetradic
#312799 #992756 #8F9927 #27996A
square
#312799 #992756 #8F9927 #27996A
split-complementary
#312799 #996A27 #569927
monochromatic
#120E37 #211B68 #312799 #4133CA #6D63D7

Accessibility & contrast

On white

11.17
#312799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#312799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312799
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312799#FFFFFF#000000##FFFFFF
##3127991.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312799;
/* rgb */ color: rgb(49, 39, 153);
/* oklch */ color: oklch(37.0% 0.176 277.4);
Tailwind
colors: {
  custom: {
    50: '#7863b8',
    500: '#312799',
    950: '#000000',
  },
}
SCSS
$custom: #312799;
$custom-light: #7863b8;
$custom-dark: #000000;
JSON
{
  "hex": "#312799",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 245.263,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37046,
    "c": 0.17576,
    "h": 277.4
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#312799
secondary
#B5BD5F
accent
#E345D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312799

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

Preview Lab → · Contrast checker → · Palette generator →

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