#312786#312786

#312786 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.151 H 280.0°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#312786
RGBrgb(49, 39, 134)
HSLhsl(246, 55%, 34%)
HSVhsv(246, 71%, 53%)
CMYKcmyk(63.4%, 70.9%, 0%, 47.5%)
CIE-LABlab(23.08, 33.82, -51.65)
CIE-LCHlch(23.08, 61.74, 303.22°)
OKLaboklab(35.14% 0.0262 -0.1489)
OKLCHoklch(35.14% 0.151 280)
XYZxyz(6.2939, 3.8248, 22.9562)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312786 #7C8627
analogous
#274D86 #312786 #612786
triadic
#312786 #863127 #278631
tetradic
#312786 #86274D #7C8627 #278661
square
#312786 #86274D #7C8627 #278661
split-complementary
#312786 #866127 #4D8627
monochromatic
#0E0B27 #201957 #312786 #4235B5 #6559CF

Accessibility & contrast

On white

11.90
#312786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#312786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312786
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312786#FFFFFF#000000##FFFFFF
##3127861.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003384
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312786;
/* rgb */ color: rgb(49, 39, 134);
/* oklch */ color: oklch(35.1% 0.151 280.0);
Tailwind
colors: {
  custom: {
    50: '#7462aa',
    500: '#312786',
    950: '#000000',
  },
}
SCSS
$custom: #312786;
$custom-light: #7462aa;
$custom-dark: #000000;
JSON
{
  "hex": "#312786",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 246.316,
    "s": 54.913,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35136,
    "c": 0.15117,
    "h": 280
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#312786
secondary
#AAB455
accent
#DE4ACF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312786

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

Preview Lab → · Contrast checker → · Palette generator →

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