#312396#312396

#312396 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.176 H 278.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#312396
RGBrgb(49, 35, 150)
HSLhsl(247, 62%, 36%)
HSVhsv(247, 77%, 59%)
CMYKcmyk(67.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(23.86, 41.42, -60.32)
CIE-LCHlch(23.86, 73.17, 304.48°)
OKLaboklab(36.17% 0.0257 -0.1742)
OKLCHoklch(36.17% 0.176 278.4)
XYZxyz(7.3709, 4.0564, 29.2428)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312396 #889623
analogous
#234F96 #312396 #6B2396
triadic
#312396 #963123 #239631
tetradic
#312396 #96234F #889623 #23966B
square
#312396 #96234F #889623 #23966B
split-complementary
#312396 #966B23 #4F9623
monochromatic
#110C33 #211764 #312396 #412FC8 #6A5BD9

Accessibility & contrast

On white

11.59
#312396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#312396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312396
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312396#FFFFFF#000000##FFFFFF
##3123961.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312396;
/* rgb */ color: rgb(49, 35, 150);
/* oklch */ color: oklch(36.2% 0.176 278.4);
Tailwind
colors: {
  custom: {
    50: '#7860b6',
    500: '#312396',
    950: '#000000',
  },
}
SCSS
$custom: #312396;
$custom-light: #7860b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312396",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 247.304,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36172,
    "c": 0.17609,
    "h": 278.4
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#312396
secondary
#B1BD58
accent
#E543D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312396

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

Preview Lab → · Contrast checker → · Palette generator →

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