#312367#312367

#312367 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.6% C 0.114 H 287.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#312367
RGBrgb(49, 35, 103)
HSLhsl(252, 49%, 27%)
HSVhsv(252, 66%, 40%)
CMYKcmyk(52.4%, 66%, 0%, 59.6%)
CIE-LABlab(19.37, 25.93, -37.88)
CIE-LCHlch(19.37, 45.90, 304.39°)
OKLaboklab(31.59% 0.0342 -0.1085)
OKLCHoklch(31.59% 0.114 287.5)
XYZxyz(4.3151, 2.8341, 13.1490)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312367 #596723
analogous
#233767 #312367 #532367
triadic
#312367 #673123 #236731
tetradic
#312367 #672337 #596723 #236753
square
#312367 #672337 #596723 #236753
split-complementary
#312367 #675323 #376723
monochromatic
#0B0817 #1B1339 #312367 #473395 #5E45C0

Accessibility & contrast

On white

13.40
#312367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#312367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312367
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312367#FFFFFF#000000##FFFFFF
##3123671.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#1E3341
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #312367;
/* rgb */ color: rgb(49, 35, 103);
/* oklch */ color: oklch(31.6% 0.114 287.5);
Tailwind
colors: {
  custom: {
    50: '#6e5e93',
    500: '#312367',
    950: '#000000',
  },
}
SCSS
$custom: #312367;
$custom-light: #6e5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#312367",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 103
  },
  "hsl": {
    "h": 252.353,
    "s": 49.275,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31586,
    "c": 0.11373,
    "h": 287.5
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#312367
secondary
#8A9B4B
accent
#D94FBC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #312367

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

Preview Lab → · Contrast checker → · Palette generator →

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