#312776#312776

#312776 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.129 H 282.7°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#312776
RGBrgb(49, 39, 118)
HSLhsl(248, 50%, 31%)
HSVhsv(248, 67%, 46%)
CMYKcmyk(58.5%, 66.9%, 0%, 53.7%)
CIE-LABlab(21.62, 28.39, -43.91)
CIE-LCHlch(21.62, 52.29, 302.88°)
OKLaboklab(33.63% 0.0284 -0.1262)
OKLCHoklch(33.63% 0.129 282.7)
XYZxyz(5.2611, 3.4117, 17.5173)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312776 #6C7627
analogous
#274476 #312776 #582776
triadic
#312776 #763127 #277631
tetradic
#312776 #762744 #6C7627 #277658
square
#312776 #762744 #6C7627 #277658
split-complementary
#312776 #765827 #447627
monochromatic
#0B091A #1E1848 #312776 #4436A4 #6052C6

Accessibility & contrast

On white

12.48
#312776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#312776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312776
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312776#FFFFFF#000000##FFFFFF
##3127761.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#0F3B4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312776;
/* rgb */ color: rgb(49, 39, 118);
/* oklch */ color: oklch(33.6% 0.129 282.7);
Tailwind
colors: {
  custom: {
    50: '#71629e',
    500: '#312776',
    950: '#000000',
  },
}
SCSS
$custom: #312776;
$custom-light: #71629e;
$custom-dark: #000000;
JSON
{
  "hex": "#312776",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 247.595,
    "s": 50.318,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33629,
    "c": 0.12934,
    "h": 282.7
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#312776
secondary
#9DA851
accent
#DA4EC8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312776

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

Preview Lab → · Contrast checker → · Palette generator →

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