#312296#312296

#312296 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.177 H 278.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#312296
RGBrgb(49, 34, 150)
HSLhsl(248, 63%, 36%)
HSVhsv(248, 77%, 59%)
CMYKcmyk(67.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.67, 41.97, -60.63)
CIE-LCHlch(23.67, 73.74, 304.69°)
OKLaboklab(36.04% 0.0263 -0.1751)
OKLCHoklch(36.04% 0.177 278.5)
XYZxyz(7.3419, 3.9984, 29.2331)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312296 #879622
analogous
#224D96 #312296 #6B2296
triadic
#312296 #963122 #229631
tetradic
#312296 #96224D #879622 #22966B
square
#312296 #96224D #879622 #22966B
split-complementary
#312296 #966B22 #4D9622
monochromatic
#100B32 #211764 #312296 #412DC8 #6A59D9

Accessibility & contrast

On white

11.67
#312296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#312296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312296
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312296#FFFFFF#000000##FFFFFF
##3122961.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312296;
/* rgb */ color: rgb(49, 34, 150);
/* oklch */ color: oklch(36.0% 0.177 278.5);
Tailwind
colors: {
  custom: {
    50: '#7860b6',
    500: '#312296',
    950: '#000000',
  },
}
SCSS
$custom: #312296;
$custom-light: #7860b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312296",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 247.759,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36037,
    "c": 0.17708,
    "h": 278.5
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#312296
secondary
#B0BE56
accent
#E642D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312296

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

Preview Lab → · Contrast checker → · Palette generator →

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