#311251#311251

#311251 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.109 H 301.9°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#311251
RGBrgb(49, 18, 81)
HSLhsl(270, 64%, 19%)
HSVhsv(270, 78%, 32%)
CMYKcmyk(39.5%, 77.8%, 0%, 68.2%)
CIE-LABlab(13.71, 29.40, -32.37)
CIE-LCHlch(13.71, 43.73, 312.24°)
OKLaboklab(26.92% 0.0575 -0.0922)
OKLCHoklch(26.92% 0.109 301.9)
XYZxyz(2.9678, 1.6797, 7.9508)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311251 #325112
analogous
#121351 #311251 #511251
triadic
#311251 #513112 #125131
tetradic
#311251 #511213 #325112 #125151
square
#311251 #511213 #325112 #125151
split-complementary
#311251 #515112 #135112
monochromatic
#0F0619 #13071F #311251 #4F1D83 #6E28B5

Accessibility & contrast

On white

15.72
#311251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311251
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311251#FFFFFF#000000##FFFFFF
##3112511.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#2A2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311251;
/* rgb */ color: rgb(49, 18, 81);
/* oklch */ color: oklch(26.9% 0.109 301.9);
Tailwind
colors: {
  custom: {
    50: '#6d5382',
    500: '#311251',
    950: '#000000',
  },
}
SCSS
$custom: #311251;
$custom-light: #6d5382;
$custom-dark: #000000;
JSON
{
  "hex": "#311251",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 269.524,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26917,
    "c": 0.10872,
    "h": 301.9
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#311251
secondary
#608A35
accent
#E74195
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311251

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

Preview Lab → · Contrast checker → · Palette generator →

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