#312186#312186

#312186 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.158 H 281.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#312186
RGBrgb(49, 33, 134)
HSLhsl(250, 60%, 33%)
HSVhsv(250, 75%, 53%)
CMYKcmyk(63.4%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.80, 37.37, -53.75)
CIE-LCHlch(21.80, 65.46, 304.81°)
OKLaboklab(34.22% 0.0309 -0.155)
OKLCHoklch(34.22% 0.158 281.3)
XYZxyz(6.1122, 3.4615, 22.8957)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312186 #768621
analogous
#214386 #312186 #632186
triadic
#312186 #863121 #218631
tetradic
#312186 #862143 #768621 #218663
square
#312186 #862143 #768621 #218663
split-complementary
#312186 #866321 #438621
monochromatic
#0D0924 #1F1555 #312186 #432DB7 #634ED3

Accessibility & contrast

On white

12.41
#312186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312186
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312186#FFFFFF#000000##FFFFFF
##3121861.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312186;
/* rgb */ color: rgb(49, 33, 134);
/* oklch */ color: oklch(34.2% 0.158 281.3);
Tailwind
colors: {
  custom: {
    50: '#755eaa',
    500: '#312186',
    950: '#000000',
  },
}
SCSS
$custom: #312186;
$custom-light: #755eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#312186",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 249.505,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34224,
    "c": 0.15806,
    "h": 281.3
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#312186
secondary
#A6B74C
accent
#E444CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312186

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

Preview Lab → · Contrast checker → · Palette generator →

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