#312366#312366

#312366 is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.5% C 0.112 H 287.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#312366
RGBrgb(49, 35, 102)
HSLhsl(253, 49%, 27%)
HSVhsv(253, 66%, 40%)
CMYKcmyk(52%, 65.7%, 0%, 60%)
CIE-LABlab(19.28, 25.59, -37.36)
CIE-LCHlch(19.28, 45.29, 304.41°)
OKLaboklab(31.5% 0.0343 -0.1069)
OKLCHoklch(31.5% 0.112 287.8)
XYZxyz(4.2652, 2.8142, 12.8862)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312366 #586623
analogous
#233766 #312366 #532366
triadic
#312366 #663123 #236631
tetradic
#312366 #662337 #586623 #236653
square
#312366 #662337 #586623 #236653
split-complementary
#312366 #665323 #376623
monochromatic
#0B0817 #1B1338 #312366 #473394 #5E44BF

Accessibility & contrast

On white

13.44
#312366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312366
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312366#FFFFFF#000000##FFFFFF
##3123661.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#002D65
Tritanopia (blue-blind)
#1F3341
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #312366;
/* rgb */ color: rgb(49, 35, 102);
/* oklch */ color: oklch(31.5% 0.112 287.8);
Tailwind
colors: {
  custom: {
    50: '#6e5e92',
    500: '#312366',
    950: '#000000',
  },
}
SCSS
$custom: #312366;
$custom-light: #6e5e92;
$custom-dark: #000000;
JSON
{
  "hex": "#312366",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 102
  },
  "hsl": {
    "h": 252.537,
    "s": 48.905,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31499,
    "c": 0.11231,
    "h": 287.8
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#312366
secondary
#899A4B
accent
#D84FBC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #312366

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

Preview Lab → · Contrast checker → · Palette generator →

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