#312792#312792

#312792 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.167 H 278.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#312792
RGBrgb(49, 39, 146)
HSLhsl(246, 58%, 36%)
HSVhsv(246, 73%, 57%)
CMYKcmyk(66.4%, 73.3%, 0%, 42.7%)
CIE-LABlab(24.25, 37.85, -57.20)
CIE-LCHlch(24.25, 68.58, 303.49°)
OKLaboklab(36.33% 0.024 -0.1651)
OKLCHoklch(36.33% 0.167 278.3)
XYZxyz(7.1788, 4.1787, 27.6168)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312792 #889227
analogous
#275392 #312792 #672792
triadic
#312792 #923127 #279231
tetradic
#312792 #922753 #889227 #279267
square
#312792 #922753 #889227 #279267
split-complementary
#312792 #926727 #539227
monochromatic
#110D31 #211A62 #312792 #4134C2 #6A5FD4

Accessibility & contrast

On white

11.44
#312792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312792
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312792#FFFFFF#000000##FFFFFF
##3127921.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E95
Deuteranopia (green-blind)
#003590
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312792;
/* rgb */ color: rgb(49, 39, 146);
/* oklch */ color: oklch(36.3% 0.167 278.3);
Tailwind
colors: {
  custom: {
    50: '#7763b3',
    500: '#312792',
    950: '#000000',
  },
}
SCSS
$custom: #312792;
$custom-light: #7763b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312792",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 245.607,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36329,
    "c": 0.16686,
    "h": 278.3
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#312792
secondary
#B1BA5B
accent
#E147D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312792

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

Preview Lab → · Contrast checker → · Palette generator →

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