#312896#312896

#312896 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.171 H 277.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#312896
RGBrgb(49, 40, 150)
HSLhsl(245, 58%, 37%)
HSVhsv(245, 73%, 59%)
CMYKcmyk(67.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(24.86, 38.59, -58.66)
CIE-LCHlch(24.86, 70.21, 303.34°)
OKLaboklab(36.89% 0.0225 -0.1694)
OKLCHoklch(36.89% 0.171 277.6)
XYZxyz(7.5287, 4.3719, 29.2954)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312896 #8D9628
analogous
#285696 #312896 #682896
triadic
#312896 #963128 #289631
tetradic
#312896 #962856 #8D9628 #289668
square
#312896 #962856 #8D9628 #289668
split-complementary
#312896 #966828 #569628
monochromatic
#110E35 #211B66 #312896 #4135C6 #6C63D5

Accessibility & contrast

On white

11.20
#312896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#312896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312896
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312896#FFFFFF#000000##FFFFFF
##3128961.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312896;
/* rgb */ color: rgb(49, 40, 150);
/* oklch */ color: oklch(36.9% 0.171 277.6);
Tailwind
colors: {
  custom: {
    50: '#7763b6',
    500: '#312896',
    950: '#000000',
  },
}
SCSS
$custom: #312896;
$custom-light: #7763b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312896",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 244.909,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36885,
    "c": 0.17088,
    "h": 277.6
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#312896
secondary
#B4BB5F
accent
#E147D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312896

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

Preview Lab → · Contrast checker → · Palette generator →

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