#311545#311545

#311545 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.089 H 308.4°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#311545
RGBrgb(49, 21, 69)
HSLhsl(275, 53%, 18%)
HSVhsv(275, 70%, 27%)
CMYKcmyk(29%, 69.6%, 0%, 72.9%)
CIE-LABlab(13.35, 24.33, -24.67)
CIE-LCHlch(13.35, 34.65, 314.60°)
OKLaboklab(26.35% 0.0551 -0.0696)
OKLCHoklch(26.35% 0.089 308.4)
XYZxyz(2.6087, 1.6190, 5.8041)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311545 #294515
analogous
#191545 #311545 #451541
triadic
#311545 #453115 #154531
tetradic
#311545 #451915 #294515 #154145
square
#311545 #451915 #294515 #154145
split-complementary
#311545 #414515 #154519
monochromatic
#110717 #110717 #311545 #522374 #7432A3

Accessibility & contrast

On white

15.86
#311545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#311545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311545
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311545#FFFFFF#000000##FFFFFF
##3115451.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012147
Deuteranopia (green-blind)
#0D2344
Tritanopia (blue-blind)
#2E1F2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311545;
/* rgb */ color: rgb(49, 21, 69);
/* oklch */ color: oklch(26.3% 0.089 308.4);
Tailwind
colors: {
  custom: {
    50: '#6b5479',
    500: '#311545',
    950: '#000000',
  },
}
SCSS
$custom: #311545;
$custom-light: #6b5479;
$custom-dark: #000000;
JSON
{
  "hex": "#311545",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 275,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26347,
    "c": 0.08881,
    "h": 308.4
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#311545
secondary
#557D39
accent
#DD4B88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #311545

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

Preview Lab → · Contrast checker → · Palette generator →

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