#311351#311351

#311351 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.107 H 301.7°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#311351
RGBrgb(49, 19, 81)
HSLhsl(269, 62%, 20%)
HSVhsv(269, 77%, 32%)
CMYKcmyk(39.5%, 76.5%, 0%, 68.2%)
CIE-LABlab(13.90, 28.85, -32.06)
CIE-LCHlch(13.90, 43.13, 311.99°)
OKLaboklab(27.06% 0.0564 -0.0913)
OKLCHoklch(27.06% 0.107 301.7)
XYZxyz(2.9843, 1.7128, 7.9564)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311351 #335113
analogous
#131451 #311351 #501351
triadic
#311351 #513113 #135131
tetradic
#311351 #511314 #335113 #135150
square
#311351 #511314 #335113 #135150
split-complementary
#311351 #515013 #145113
monochromatic
#0F0619 #13071F #311351 #4F1F83 #6D2AB4

Accessibility & contrast

On white

15.64
#311351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311351
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311351#FFFFFF#000000##FFFFFF
##3113511.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311351;
/* rgb */ color: rgb(49, 19, 81);
/* oklch */ color: oklch(27.1% 0.107 301.7);
Tailwind
colors: {
  custom: {
    50: '#6d5382',
    500: '#311351',
    950: '#000000',
  },
}
SCSS
$custom: #311351;
$custom-light: #6d5382;
$custom-dark: #000000;
JSON
{
  "hex": "#311351",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 269.032,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27055,
    "c": 0.10732,
    "h": 301.7
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#311351
secondary
#618A36
accent
#E54397
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311351

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

Preview Lab → · Contrast checker → · Palette generator →

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