#312392#312392

#312392 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.171 H 279.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#312392
RGBrgb(49, 35, 146)
HSLhsl(248, 61%, 35%)
HSVhsv(248, 76%, 57%)
CMYKcmyk(66.4%, 76%, 0%, 42.7%)
CIE-LABlab(23.44, 40.13, -58.54)
CIE-LCHlch(23.44, 70.98, 304.43°)
OKLaboklab(35.75% 0.0267 -0.169)
OKLCHoklch(35.75% 0.171 279)
XYZxyz(7.0543, 3.9298, 27.5753)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312392 #849223
analogous
#234C92 #312392 #692392
triadic
#312392 #923123 #239231
tetradic
#312392 #92234C #849223 #239269
square
#312392 #92234C #849223 #239269
split-complementary
#312392 #926923 #4C9223
monochromatic
#100B2F #201761 #312392 #422FC3 #6858D7

Accessibility & contrast

On white

11.76
#312392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#312392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312392
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312392#FFFFFF#000000##FFFFFF
##3123921.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312392;
/* rgb */ color: rgb(49, 35, 146);
/* oklch */ color: oklch(35.8% 0.171 279.0);
Tailwind
colors: {
  custom: {
    50: '#7760b3',
    500: '#312392',
    950: '#000000',
  },
}
SCSS
$custom: #312392;
$custom-light: #7760b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312392",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 247.568,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3575,
    "c": 0.17111,
    "h": 279
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#312392
secondary
#AEBB55
accent
#E443D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312392

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

Preview Lab → · Contrast checker → · Palette generator →

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