#312876#312876

#312876 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.128 H 282.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#312876
RGBrgb(49, 40, 118)
HSLhsl(247, 49%, 31%)
HSVhsv(247, 66%, 46%)
CMYKcmyk(58.5%, 66.1%, 0%, 53.7%)
CIE-LABlab(21.87, 27.74, -43.51)
CIE-LCHlch(21.87, 51.60, 302.52°)
OKLaboklab(33.81% 0.0274 -0.125)
OKLCHoklch(33.81% 0.128 282.3)
XYZxyz(5.2944, 3.4782, 17.5284)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312876 #6D7628
analogous
#284676 #312876 #582876
triadic
#312876 #763128 #287631
tetradic
#312876 #762846 #6D7628 #287658
square
#312876 #762846 #6D7628 #287658
split-complementary
#312876 #765828 #467628
monochromatic
#0B091B #1E1948 #312876 #4437A4 #6154C5

Accessibility & contrast

On white

12.38
#312876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312876
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312876#FFFFFF#000000##FFFFFF
##3128761.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#0E3B4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312876;
/* rgb */ color: rgb(49, 40, 118);
/* oklch */ color: oklch(33.8% 0.128 282.3);
Tailwind
colors: {
  custom: {
    50: '#71629e',
    500: '#312876',
    950: '#000000',
  },
}
SCSS
$custom: #312876;
$custom-light: #71629e;
$custom-dark: #000000;
JSON
{
  "hex": "#312876",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 246.923,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33806,
    "c": 0.12798,
    "h": 282.3
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#312876
secondary
#9EA852
accent
#D94FC9
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312876

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

Preview Lab → · Contrast checker → · Palette generator →

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