#312979#312979

#312979 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.131 H 281.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#312979
RGBrgb(49, 41, 121)
HSLhsl(246, 49%, 32%)
HSVhsv(246, 66%, 47%)
CMYKcmyk(59.5%, 66.1%, 0%, 52.5%)
CIE-LABlab(22.37, 28.12, -44.61)
CIE-LCHlch(22.37, 52.73, 302.23°)
OKLaboklab(34.25% 0.0261 -0.1282)
OKLCHoklch(34.25% 0.131 281.5)
XYZxyz(5.5097, 3.6190, 18.4937)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312979 #717929
analogous
#294979 #312979 #592979
triadic
#312979 #793129 #297931
tetradic
#312979 #792949 #717929 #297959
square
#312979 #792949 #717929 #297959
split-complementary
#312979 #795929 #497929
monochromatic
#0C0A1E #1E1A4B #312979 #4438A7 #6256C6

Accessibility & contrast

On white

12.18
#312979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#312979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312979
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312979#FFFFFF#000000##FFFFFF
##3129791.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#093D4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312979;
/* rgb */ color: rgb(49, 41, 121);
/* oklch */ color: oklch(34.3% 0.131 281.5);
Tailwind
colors: {
  custom: {
    50: '#7163a0',
    500: '#312979',
    950: '#000000',
  },
}
SCSS
$custom: #312979;
$custom-light: #7163a0;
$custom-dark: #000000;
JSON
{
  "hex": "#312979",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 246,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34254,
    "c": 0.13085,
    "h": 281.5
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#312979
secondary
#A2AB53
accent
#D94FCB
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #312979

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

Preview Lab → · Contrast checker → · Palette generator →

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