#312992#312992

#312992 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.165 H 277.9°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#312992
RGBrgb(49, 41, 146)
HSLhsl(245, 56%, 37%)
HSVhsv(245, 72%, 57%)
CMYKcmyk(66.4%, 71.9%, 0%, 42.7%)
CIE-LABlab(24.68, 36.66, -56.49)
CIE-LCHlch(24.68, 67.34, 302.98°)
OKLaboklab(36.64% 0.0226 -0.1631)
OKLCHoklch(36.64% 0.165 277.9)
XYZxyz(7.2462, 4.3136, 27.6393)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312992 #8A9229
analogous
#295692 #312992 #662992
triadic
#312992 #923129 #299231
tetradic
#312992 #922956 #8A9229 #299266
square
#312992 #922956 #8A9229 #299266
split-complementary
#312992 #926629 #569229
monochromatic
#110E32 #211C62 #312992 #4136C2 #6B62D3

Accessibility & contrast

On white

11.27
#312992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312992
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312992#FFFFFF#000000##FFFFFF
##3129921.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003690
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312992;
/* rgb */ color: rgb(49, 41, 146);
/* oklch */ color: oklch(36.6% 0.165 277.9);
Tailwind
colors: {
  custom: {
    50: '#7664b3',
    500: '#312992',
    950: '#000000',
  },
}
SCSS
$custom: #312992;
$custom-light: #7664b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312992",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 146
  },
  "hsl": {
    "h": 244.571,
    "s": 56.15,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36635,
    "c": 0.16463,
    "h": 277.9
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#312992
secondary
#B2B95E
accent
#DF48D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312992

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

Preview Lab → · Contrast checker → · Palette generator →

#312992 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva