#312997#312997

#312997 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.171 H 277.3°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#312997
RGBrgb(49, 41, 151)
HSLhsl(244, 57%, 38%)
HSVhsv(244, 73%, 59%)
CMYKcmyk(67.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(25.18, 38.34, -58.76)
CIE-LCHlch(25.18, 70.16, 303.12°)
OKLaboklab(37.14% 0.0217 -0.1697)
OKLCHoklch(37.14% 0.171 277.3)
XYZxyz(7.6437, 4.4726, 29.7326)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312997 #8F9729
analogous
#295897 #312997 #682997
triadic
#312997 #973129 #299731
tetradic
#312997 #972958 #8F9729 #299768
square
#312997 #972958 #8F9729 #299768
split-complementary
#312997 #976829 #589729
monochromatic
#120F37 #211C67 #312997 #4136C7 #6D65D5

Accessibility & contrast

On white

11.08
#312997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#312997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312997
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312997#FFFFFF#000000##FFFFFF
##3129971.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312997;
/* rgb */ color: rgb(49, 41, 151);
/* oklch */ color: oklch(37.1% 0.171 277.3);
Tailwind
colors: {
  custom: {
    50: '#7764b7',
    500: '#312997',
    950: '#000000',
  },
}
SCSS
$custom: #312997;
$custom-light: #7764b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312997",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 244.364,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37137,
    "c": 0.17108,
    "h": 277.3
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#312997
secondary
#B5BB61
accent
#E147D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312997

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

Preview Lab → · Contrast checker → · Palette generator →

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