#312DB5#312DB5

#312DB5 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.8% C 0.204 H 273.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#312DB5
RGBrgb(49, 45, 181)
HSLhsl(242, 60%, 44%)
HSVhsv(242, 75%, 71%)
CMYKcmyk(72.9%, 75.1%, 0%, 29%)
CIE-LABlab(29.07, 45.97, -70.48)
CIE-LCHlch(29.07, 84.15, 303.12°)
OKLaboklab(40.83% 0.0136 -0.2039)
OKLCHoklch(40.83% 0.204 273.8)
XYZxyz(10.5427, 5.8649, 44.2835)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DB5 #B1B52D
analogous
#2D6DB5 #312DB5 #752DB5
triadic
#312DB5 #B5312D #2DB531
tetradic
#312DB5 #B52D6D #B1B52D #2DB575
square
#312DB5 #B52D6D #B1B52D #2DB575
split-complementary
#312DB5 #B5752D #6DB52D
monochromatic
#161553 #242184 #312DB5 #514DD3 #807EDF

Accessibility & contrast

On white

9.66
#312DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#312DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DB5
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DB5#FFFFFF#000000##FFFFFF
##312DB51.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#003EB3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312db5;
/* rgb */ color: rgb(49, 45, 181);
/* oklch */ color: oklch(40.8% 0.204 273.8);
Tailwind
colors: {
  custom: {
    50: '#7e68cc',
    500: '#312db5',
    950: '#000000',
  },
}
SCSS
$custom: #312db5;
$custom-light: #7e68cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312db5",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 241.765,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40825,
    "c": 0.20432,
    "h": 273.8
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#312DB5
secondary
#C5C776
accent
#E344DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312DB5

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

Preview Lab → · Contrast checker → · Palette generator →

#312DB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva