#312796#312796

#312796 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.172 H 277.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#312796
RGBrgb(49, 39, 150)
HSLhsl(245, 59%, 37%)
HSVhsv(245, 74%, 59%)
CMYKcmyk(67.3%, 74%, 0%, 41.2%)
CIE-LABlab(24.66, 39.17, -59.00)
CIE-LCHlch(24.66, 70.82, 303.58°)
OKLaboklab(36.74% 0.0232 -0.1704)
OKLCHoklch(36.74% 0.172 277.8)
XYZxyz(7.4954, 4.3054, 29.2843)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312796 #8C9627
analogous
#275596 #312796 #682796
triadic
#312796 #963127 #279631
tetradic
#312796 #962755 #8C9627 #279668
square
#312796 #962755 #8C9627 #279668
split-complementary
#312796 #966827 #559627
monochromatic
#110E35 #211A65 #312796 #4134C7 #6C61D6

Accessibility & contrast

On white

11.28
#312796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312796
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312796#FFFFFF#000000##FFFFFF
##3127961.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312796;
/* rgb */ color: rgb(49, 39, 150);
/* oklch */ color: oklch(36.7% 0.172 277.8);
Tailwind
colors: {
  custom: {
    50: '#7763b6',
    500: '#312796',
    950: '#000000',
  },
}
SCSS
$custom: #312796;
$custom-light: #7763b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312796",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 245.405,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36737,
    "c": 0.17196,
    "h": 277.8
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#312796
secondary
#B3BC5D
accent
#E246D4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312796

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

Preview Lab → · Contrast checker → · Palette generator →

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