#311345#311345

#311345 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.092 H 309.0°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#311345
RGBrgb(49, 19, 69)
HSLhsl(276, 57%, 17%)
HSVhsv(276, 72%, 27%)
CMYKcmyk(29%, 72.5%, 0%, 72.9%)
CIE-LABlab(12.91, 25.52, -25.37)
CIE-LCHlch(12.91, 35.98, 315.17°)
OKLaboklab(26.03% 0.058 -0.0717)
OKLCHoklch(26.03% 0.092 309)
XYZxyz(2.5735, 1.5484, 5.7924)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311345 #274513
analogous
#181345 #311345 #451340
triadic
#311345 #453113 #134531
tetradic
#311345 #451813 #274513 #134045
square
#311345 #451813 #274513 #134045
split-complementary
#311345 #404513 #134518
monochromatic
#110718 #110718 #311345 #532075 #752DA5

Accessibility & contrast

On white

16.04
#311345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#311345 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311345
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311345#FFFFFF#000000##FFFFFF
##3113451.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#0B2244
Tritanopia (blue-blind)
#2E1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311345;
/* rgb */ color: rgb(49, 19, 69);
/* oklch */ color: oklch(26.0% 0.092 309.0);
Tailwind
colors: {
  custom: {
    50: '#6b5379',
    500: '#311345',
    950: '#000000',
  },
}
SCSS
$custom: #311345;
$custom-light: #6b5379;
$custom-dark: #000000;
JSON
{
  "hex": "#311345",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 276,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26034,
    "c": 0.09217,
    "h": 309
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#311345
secondary
#537E36
accent
#E04885
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311345

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

Preview Lab → · Contrast checker → · Palette generator →

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