#311450#311450

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

Color values

HEX#311450
RGBrgb(49, 20, 80)
HSLhsl(269, 60%, 20%)
HSVhsv(269, 75%, 31%)
CMYKcmyk(38.8%, 75%, 0%, 68.6%)
CIE-LABlab(14.02, 28.01, -31.19)
CIE-LCHlch(14.02, 41.92, 311.92°)
OKLaboklab(27.11% 0.0553 -0.0888)
OKLCHoklch(27.11% 0.105 301.9)
XYZxyz(2.9644, 1.7325, 7.7661)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311450 #335014
analogous
#141550 #311450 #4F1450
triadic
#311450 #503114 #145031
tetradic
#311450 #501415 #335014 #14504F
square
#311450 #501415 #335014 #14504F
split-complementary
#311450 #504F14 #155014
monochromatic
#0F0618 #13081F #311450 #4F2081 #6D2CB2

Accessibility & contrast

On white

15.60
#311450 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311450 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311450
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311450#FFFFFF#000000##FFFFFF
##3114501.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#2B2230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311450;
/* rgb */ color: rgb(49, 20, 80);
/* oklch */ color: oklch(27.1% 0.105 301.9);
Tailwind
colors: {
  custom: {
    50: '#6c5482',
    500: '#311450',
    950: '#000000',
  },
}
SCSS
$custom: #311450;
$custom-light: #6c5482;
$custom-dark: #000000;
JSON
{
  "hex": "#311450",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 80
  },
  "hsl": {
    "h": 269,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27109,
    "c": 0.1046,
    "h": 301.9
  },
  "luminance": 0.01732
}

Semantic roles & 50–950 ramp

primary
#311450
secondary
#618838
accent
#E34597
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311450

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

Preview Lab → · Contrast checker → · Palette generator →

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