#312C8D#312C8D

#312C8D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.154 H 277.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#312C8D
RGBrgb(49, 44, 141)
HSLhsl(243, 52%, 36%)
HSVhsv(243, 69%, 55%)
CMYKcmyk(65.2%, 68.8%, 0%, 44.7%)
CIE-LABlab(24.88, 33.11, -53.07)
CIE-LCHlch(24.88, 62.55, 301.96°)
OKLaboklab(36.63% 0.0211 -0.1531)
OKLCHoklch(36.63% 0.155 277.8)
XYZxyz(6.9735, 4.3769, 25.6715)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C8D #888D2C
analogous
#2C588D #312C8D #622C8D
triadic
#312C8D #8D312C #2C8D31
tetradic
#312C8D #8D2C58 #888D2C #2C8D62
square
#312C8D #8D2C58 #888D2C #2C8D62
split-complementary
#312C8D #8D622C #588D2C
monochromatic
#110F30 #211D5E #312C8D #413BBC #6A65CF

Accessibility & contrast

On white

11.20
#312C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#312C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C8D
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C8D#FFFFFF#000000##FFFFFF
##312C8D1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312c8d;
/* rgb */ color: rgb(49, 44, 141);
/* oklch */ color: oklch(36.6% 0.154 277.8);
Tailwind
colors: {
  custom: {
    50: '#7566af',
    500: '#312c8d',
    950: '#000000',
  },
}
SCSS
$custom: #312c8d;
$custom-light: #7566af;
$custom-dark: #000000;
JSON
{
  "hex": "#312c8d",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 243.093,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36632,
    "c": 0.1545,
    "h": 277.8
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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