#312C8C#312C8C

#312C8C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.153 H 277.9°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#312C8C
RGBrgb(49, 44, 140)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 69%, 55%)
CMYKcmyk(65%, 68.6%, 0%, 45.1%)
CIE-LABlab(24.79, 32.77, -52.60)
CIE-LCHlch(24.79, 61.97, 301.92°)
OKLaboklab(36.54% 0.0212 -0.1517)
OKLCHoklch(36.54% 0.153 277.9)
XYZxyz(6.8994, 4.3472, 25.2814)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C8C #878C2C
analogous
#2C578C #312C8C #612C8C
triadic
#312C8C #8C312C #2C8C31
tetradic
#312C8C #8C2C57 #878C2C #2C8C61
square
#312C8C #8C2C57 #878C2C #2C8C61
split-complementary
#312C8C #8C612C #578C2C
monochromatic
#100F2F #211D5D #312C8C #413BBB #6A64CE

Accessibility & contrast

On white

11.23
#312C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#312C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C8C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C8C#FFFFFF#000000##FFFFFF
##312C8C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312c8c;
/* rgb */ color: rgb(49, 44, 140);
/* oklch */ color: oklch(36.5% 0.153 277.9);
Tailwind
colors: {
  custom: {
    50: '#7566af',
    500: '#312c8c',
    950: '#000000',
  },
}
SCSS
$custom: #312c8c;
$custom-light: #7566af;
$custom-dark: #000000;
JSON
{
  "hex": "#312c8c",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 243.125,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36537,
    "c": 0.15315,
    "h": 277.9
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#312C8C
secondary
#B0B55F
accent
#DC4CD4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #312C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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