#312884#312884

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

Color values

HEX#312884
RGBrgb(49, 40, 132)
HSLhsl(246, 53%, 34%)
HSVhsv(246, 70%, 52%)
CMYKcmyk(62.9%, 69.7%, 0%, 48.2%)
CIE-LABlab(23.12, 32.53, -50.33)
CIE-LCHlch(23.12, 59.93, 302.87°)
OKLaboklab(35.11% 0.0257 -0.145)
OKLCHoklch(35.11% 0.147 280)
XYZxyz(6.1890, 3.8360, 22.2396)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312884 #7B8428
analogous
#284D84 #312884 #5F2884
triadic
#312884 #843128 #288431
tetradic
#312884 #84284D #7B8428 #28845F
square
#312884 #84284D #7B8428 #28845F
split-complementary
#312884 #845F28 #4D8428
monochromatic
#0E0C26 #201A55 #312884 #4236B3 #655ACD

Accessibility & contrast

On white

11.88
#312884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312884
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312884#FFFFFF#000000##FFFFFF
##3128841.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312884;
/* rgb */ color: rgb(49, 40, 132);
/* oklch */ color: oklch(35.1% 0.147 280.0);
Tailwind
colors: {
  custom: {
    50: '#7463a9',
    500: '#312884',
    950: '#000000',
  },
}
SCSS
$custom: #312884;
$custom-light: #7463a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312884",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 245.87,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35106,
    "c": 0.14728,
    "h": 280
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#312884
secondary
#A9B256
accent
#DD4BCF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312884

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

Preview Lab → · Contrast checker → · Palette generator →

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