#312463#312463

#312463 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.106 H 288.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#312463
RGBrgb(49, 36, 99)
HSLhsl(252, 47%, 26%)
HSVhsv(252, 64%, 39%)
CMYKcmyk(50.5%, 63.6%, 0%, 61.2%)
CIE-LABlab(19.29, 23.94, -35.38)
CIE-LCHlch(19.29, 42.72, 304.09°)
OKLaboklab(31.43% 0.0332 -0.1011)
OKLCHoklch(31.43% 0.106 288.2)
XYZxyz(4.1490, 2.8154, 12.1268)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312463 #566324
analogous
#243763 #312463 #512463
triadic
#312463 #633124 #246331
tetradic
#312463 #632437 #566324 #246351
square
#312463 #632437 #566324 #246351
split-complementary
#312463 #635124 #376324
monochromatic
#0B0816 #1B1436 #312463 #473490 #5E46BC

Accessibility & contrast

On white

13.43
#312463 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#312463 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312463
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312463#FFFFFF#000000##FFFFFF
##3124631.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003065
Deuteranopia (green-blind)
#002D62
Tritanopia (blue-blind)
#21323F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #312463;
/* rgb */ color: rgb(49, 36, 99);
/* oklch */ color: oklch(31.4% 0.106 288.2);
Tailwind
colors: {
  custom: {
    50: '#6e5f90',
    500: '#312463',
    950: '#000000',
  },
}
SCSS
$custom: #312463;
$custom-light: #6e5f90;
$custom-dark: #000000;
JSON
{
  "hex": "#312463",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 99
  },
  "hsl": {
    "h": 252.381,
    "s": 46.667,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31426,
    "c": 0.10645,
    "h": 288.2
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#312463
secondary
#87964C
accent
#D651BB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #312463

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

Preview Lab → · Contrast checker → · Palette generator →

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