#311649#311649

#311649 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.092 H 305.4°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#311649
RGBrgb(49, 22, 73)
HSLhsl(272, 54%, 19%)
HSVhsv(272, 70%, 29%)
CMYKcmyk(32.9%, 69.9%, 0%, 71.4%)
CIE-LABlab(13.87, 24.85, -26.61)
CIE-LCHlch(13.87, 36.40, 313.04°)
OKLaboklab(26.83% 0.0535 -0.0753)
OKLCHoklch(26.83% 0.092 305.4)
XYZxyz(2.7559, 1.7078, 6.4865)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311649 #2E4916
analogous
#171649 #311649 #491647
triadic
#311649 #493116 #164931
tetradic
#311649 #491716 #2E4916 #164749
square
#311649 #491716 #2E4916 #164749
split-complementary
#311649 #474916 #164917
monochromatic
#100718 #11081A #311649 #512478 #7032A7

Accessibility & contrast

On white

15.65
#311649 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311649 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311649
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311649#FFFFFF#000000##FFFFFF
##3116491.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234B
Deuteranopia (green-blind)
#0A2348
Tritanopia (blue-blind)
#2D212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311649;
/* rgb */ color: rgb(49, 22, 73);
/* oklch */ color: oklch(26.8% 0.092 305.4);
Tailwind
colors: {
  custom: {
    50: '#6b557c',
    500: '#311649',
    950: '#000000',
  },
}
SCSS
$custom: #311649;
$custom-light: #6b557c;
$custom-dark: #000000;
JSON
{
  "hex": "#311649",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 73
  },
  "hsl": {
    "h": 271.765,
    "s": 53.684,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26826,
    "c": 0.09237,
    "h": 305.4
  },
  "luminance": 0.01708
}

Semantic roles & 50–950 ramp

primary
#311649
secondary
#5B803A
accent
#DD4B90
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #311649

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

Preview Lab → · Contrast checker → · Palette generator →

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