#311451#311451

#311451 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.106 H 301.4°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#311451
RGBrgb(49, 20, 81)
HSLhsl(269, 60%, 20%)
HSVhsv(269, 75%, 32%)
CMYKcmyk(39.5%, 75.3%, 0%, 68.2%)
CIE-LABlab(14.10, 28.30, -31.74)
CIE-LCHlch(14.10, 42.52, 311.72°)
OKLaboklab(27.2% 0.0552 -0.0904)
OKLCHoklch(27.2% 0.106 301.4)
XYZxyz(3.0016, 1.7473, 7.9621)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311451 #345114
analogous
#141551 #311451 #501451
triadic
#311451 #513114 #145131
tetradic
#311451 #511415 #345114 #145150
square
#311451 #511415 #345114 #145150
split-complementary
#311451 #515014 #155114
monochromatic
#0F0619 #130820 #311451 #4F2082 #6C2CB3

Accessibility & contrast

On white

15.56
#311451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311451
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311451#FFFFFF#000000##FFFFFF
##3114511.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311451;
/* rgb */ color: rgb(49, 20, 81);
/* oklch */ color: oklch(27.2% 0.106 301.4);
Tailwind
colors: {
  custom: {
    50: '#6d5482',
    500: '#311451',
    950: '#000000',
  },
}
SCSS
$custom: #311451;
$custom-light: #6d5482;
$custom-dark: #000000;
JSON
{
  "hex": "#311451",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 268.525,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27198,
    "c": 0.10588,
    "h": 301.4
  },
  "luminance": 0.01747
}

Semantic roles & 50–950 ramp

primary
#311451
secondary
#628938
accent
#E44498
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311451

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

Preview Lab → · Contrast checker → · Palette generator →

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