#311651#311651

#311651 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.103 H 300.8°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#311651
RGBrgb(49, 22, 81)
HSLhsl(267, 57%, 20%)
HSVhsv(267, 73%, 32%)
CMYKcmyk(39.5%, 72.8%, 0%, 68.2%)
CIE-LABlab(14.52, 27.15, -31.06)
CIE-LCHlch(14.52, 41.25, 311.15°)
OKLaboklab(27.5% 0.0527 -0.0884)
OKLCHoklch(27.5% 0.103 300.8)
XYZxyz(3.0384, 1.8208, 7.9744)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311651 #365116
analogous
#161851 #311651 #4F1651
triadic
#311651 #513116 #165131
tetradic
#311651 #511618 #365116 #16514F
square
#311651 #511618 #365116 #16514F
split-complementary
#311651 #514F16 #185116
monochromatic
#0F0718 #140921 #311651 #4E2381 #6B30B1

Accessibility & contrast

On white

15.39
#311651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311651
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311651#FFFFFF#000000##FFFFFF
##3116511.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#2A2331
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311651;
/* rgb */ color: rgb(49, 22, 81);
/* oklch */ color: oklch(27.5% 0.103 300.8);
Tailwind
colors: {
  custom: {
    50: '#6c5582',
    500: '#311651',
    950: '#000000',
  },
}
SCSS
$custom: #311651;
$custom-light: #6c5582;
$custom-dark: #000000;
JSON
{
  "hex": "#311651",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 267.458,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27496,
    "c": 0.10291,
    "h": 300.8
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#311651
secondary
#65883A
accent
#E1479A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311651

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

Preview Lab → · Contrast checker → · Palette generator →

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