#312C8F#312C8F

#312C8F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.157 H 277.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#312C8F
RGBrgb(49, 44, 143)
HSLhsl(243, 53%, 37%)
HSVhsv(243, 69%, 56%)
CMYKcmyk(65.7%, 69.2%, 0%, 43.9%)
CIE-LABlab(25.07, 33.80, -54.01)
CIE-LCHlch(25.07, 63.71, 302.04°)
OKLaboklab(36.82% 0.0208 -0.1558)
OKLCHoklch(36.82% 0.157 277.6)
XYZxyz(7.1236, 4.4369, 26.4623)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C8F #8A8F2C
analogous
#2C598F #312C8F #632C8F
triadic
#312C8F #8F312C #2C8F31
tetradic
#312C8F #8F2C59 #8A8F2C #2C8F63
square
#312C8F #8F2C59 #8A8F2C #2C8F63
split-complementary
#312C8F #8F632C #598F2C
monochromatic
#110F31 #211E60 #312C8F #413ABE #6B66D0

Accessibility & contrast

On white

11.13
#312C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#312C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312C8F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C8F#FFFFFF#000000##FFFFFF
##312C8F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312c8f;
/* rgb */ color: rgb(49, 44, 143);
/* oklch */ color: oklch(36.8% 0.157 277.6);
Tailwind
colors: {
  custom: {
    50: '#7566b1',
    500: '#312c8f',
    950: '#000000',
  },
}
SCSS
$custom: #312c8f;
$custom-light: #7566b1;
$custom-dark: #000000;
JSON
{
  "hex": "#312c8f",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 243.03,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36823,
    "c": 0.15718,
    "h": 277.6
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#312C8F
secondary
#B2B661
accent
#DC4BD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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