#312473#312473

#312473 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.129 H 284.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#312473
RGBrgb(49, 36, 115)
HSLhsl(250, 52%, 30%)
HSVhsv(250, 69%, 45%)
CMYKcmyk(57.4%, 68.7%, 0%, 54.9%)
CIE-LABlab(20.64, 29.29, -43.58)
CIE-LCHlch(20.64, 52.51, 303.90°)
OKLaboklab(32.84% 0.0318 -0.1252)
OKLCHoklch(32.84% 0.129 284.2)
XYZxyz(4.9911, 3.1522, 16.5618)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312473 #667324
analogous
#243F73 #312473 #582473
triadic
#312473 #733124 #247331
tetradic
#312473 #73243F #667324 #247358
square
#312473 #73243F #667324 #247358
split-complementary
#312473 #735824 #3F7324
monochromatic
#0A0717 #1D1544 #312473 #4533A2 #5F4BC7

Accessibility & contrast

On white

12.88
#312473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#312473 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312473
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312473#FFFFFF#000000##FFFFFF
##3124731.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#133848
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312473;
/* rgb */ color: rgb(49, 36, 115);
/* oklch */ color: oklch(32.8% 0.129 284.2);
Tailwind
colors: {
  custom: {
    50: '#715f9c',
    500: '#312473',
    950: '#000000',
  },
}
SCSS
$custom: #312473;
$custom-light: #715f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#312473",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 115
  },
  "hsl": {
    "h": 249.873,
    "s": 52.318,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32837,
    "c": 0.1292,
    "h": 284.2
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#312473
secondary
#97A64D
accent
#DC4CC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312473

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

Preview Lab → · Contrast checker → · Palette generator →

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