#312359#312359

#312359 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.4% C 0.093 H 291.9°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#312359
RGBrgb(49, 35, 89)
HSLhsl(256, 44%, 24%)
HSVhsv(256, 61%, 35%)
CMYKcmyk(44.9%, 60.7%, 0%, 65.1%)
CIE-LABlab(18.26, 21.33, -30.42)
CIE-LCHlch(18.26, 37.15, 305.04°)
OKLaboklab(30.42% 0.0347 -0.0865)
OKLCHoklch(30.42% 0.093 291.9)
XYZxyz(3.6703, 2.5762, 9.7531)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312359 #4B5923
analogous
#233059 #312359 #4C2359
triadic
#312359 #593123 #235931
tetradic
#312359 #592330 #4B5923 #23594C
square
#312359 #592330 #4B5923 #23594C
split-complementary
#312359 #594C23 #305923
monochromatic
#0C0916 #19122D #312359 #493485 #6146B1

Accessibility & contrast

On white

13.86
#312359 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#312359 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312359
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312359#FFFFFF#000000##FFFFFF
##3123591.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062D5B
Deuteranopia (green-blind)
#0A2B58
Tritanopia (blue-blind)
#262F3A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #312359;
/* rgb */ color: rgb(49, 35, 89);
/* oklch */ color: oklch(30.4% 0.093 291.9);
Tailwind
colors: {
  custom: {
    50: '#6c5e88',
    500: '#312359',
    950: '#000000',
  },
}
SCSS
$custom: #312359;
$custom-light: #6c5e88;
$custom-dark: #000000;
JSON
{
  "hex": "#312359",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 89
  },
  "hsl": {
    "h": 255.556,
    "s": 43.548,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30423,
    "c": 0.09323,
    "h": 291.9
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#312359
secondary
#7C8D4B
accent
#D355B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #312359

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

Preview Lab → · Contrast checker → · Palette generator →

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