#312492#312492

#312492 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.170 H 278.8°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#312492
RGBrgb(49, 36, 146)
HSLhsl(247, 60%, 36%)
HSVhsv(247, 75%, 57%)
CMYKcmyk(66.4%, 75.3%, 0%, 42.7%)
CIE-LABlab(23.64, 39.57, -58.21)
CIE-LCHlch(23.64, 70.39, 304.21°)
OKLaboklab(35.89% 0.026 -0.1681)
OKLCHoklch(35.89% 0.17 278.8)
XYZxyz(7.0841, 3.9895, 27.5853)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312492 #859224
analogous
#244E92 #312492 #682492
triadic
#312492 #923124 #249231
tetradic
#312492 #92244E #859224 #249268
square
#312492 #92244E #859224 #249268
split-complementary
#312492 #926824 #4E9224
monochromatic
#100C30 #211861 #312492 #4130C3 #695AD6

Accessibility & contrast

On white

11.68
#312492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312492
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312492#FFFFFF#000000##FFFFFF
##3124921.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312492;
/* rgb */ color: rgb(49, 36, 146);
/* oklch */ color: oklch(35.9% 0.170 278.8);
Tailwind
colors: {
  custom: {
    50: '#7761b3',
    500: '#312492',
    950: '#000000',
  },
}
SCSS
$custom: #312492;
$custom-light: #7761b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312492",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 247.091,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35891,
    "c": 0.17007,
    "h": 278.8
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#312492
secondary
#AFBB57
accent
#E444D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312492

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

Preview Lab → · Contrast checker → · Palette generator →

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