#312C87#312C87

#312C87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.146 H 278.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#312C87
RGBrgb(49, 44, 135)
HSLhsl(243, 51%, 35%)
HSVhsv(243, 67%, 53%)
CMYKcmyk(63.7%, 67.4%, 0%, 47.1%)
CIE-LABlab(24.33, 31.03, -50.23)
CIE-LCHlch(24.33, 59.05, 301.71°)
OKLaboklab(36.07% 0.0218 -0.1447)
OKLCHoklch(36.07% 0.146 278.6)
XYZxyz(6.5391, 4.2031, 23.3837)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C87 #82872C
analogous
#2C5487 #312C87 #5F2C87
triadic
#312C87 #87312C #2C8731
tetradic
#312C87 #872C54 #82872C #2C875F
square
#312C87 #872C54 #82872C #2C875F
split-complementary
#312C87 #875F2C #54872C
monochromatic
#0F0E2B #201D59 #312C87 #423BB5 #6862CC

Accessibility & contrast

On white

11.41
#312C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C87
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C87#FFFFFF#000000##FFFFFF
##312C871.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312c87;
/* rgb */ color: rgb(49, 44, 135);
/* oklch */ color: oklch(36.1% 0.146 278.6);
Tailwind
colors: {
  custom: {
    50: '#7466ab',
    500: '#312c87',
    950: '#000000',
  },
}
SCSS
$custom: #312c87;
$custom-light: #7466ab;
$custom-dark: #000000;
JSON
{
  "hex": "#312c87",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 243.297,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36066,
    "c": 0.14636,
    "h": 278.6
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#312C87
secondary
#ADB25D
accent
#DA4DD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312C87

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

Preview Lab → · Contrast checker → · Palette generator →

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