#312C90#312C90

#312C90 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.159 H 277.5°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#312C90
RGBrgb(49, 44, 144)
HSLhsl(243, 53%, 37%)
HSVhsv(243, 69%, 56%)
CMYKcmyk(66%, 69.4%, 0%, 43.5%)
CIE-LABlab(25.16, 34.14, -54.47)
CIE-LCHlch(25.16, 64.29, 302.08°)
OKLaboklab(36.92% 0.0206 -0.1572)
OKLCHoklch(36.92% 0.159 277.5)
XYZxyz(7.1997, 4.4674, 26.8630)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312C90 #8B902C
analogous
#2C5990 #312C90 #632C90
triadic
#312C90 #90312C #2C9031
tetradic
#312C90 #902C59 #8B902C #2C9063
square
#312C90 #902C59 #8B902C #2C9063
split-complementary
#312C90 #90632C #59902C
monochromatic
#110F32 #211E61 #312C90 #413ABF #6B66D0

Accessibility & contrast

On white

11.09
#312C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312C90
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312C90#FFFFFF#000000##FFFFFF
##312C901.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312c90;
/* rgb */ color: rgb(49, 44, 144);
/* oklch */ color: oklch(36.9% 0.159 277.5);
Tailwind
colors: {
  custom: {
    50: '#7666b1',
    500: '#312c90',
    950: '#000000',
  },
}
SCSS
$custom: #312c90;
$custom-light: #7666b1;
$custom-dark: #000000;
JSON
{
  "hex": "#312c90",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 243,
    "s": 53.191,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3692,
    "c": 0.15851,
    "h": 277.5
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#312C90
secondary
#B2B761
accent
#DD4BD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312C90

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

Preview Lab → · Contrast checker → · Palette generator →

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