#311266#311266

#311266 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.134 H 292.7°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#311266
RGBrgb(49, 18, 102)
HSLhsl(262, 70%, 24%)
HSVhsv(262, 82%, 40%)
CMYKcmyk(52%, 82.4%, 0%, 60%)
CIE-LABlab(15.72, 35.44, -43.18)
CIE-LCHlch(15.72, 55.86, 309.38°)
OKLaboklab(28.95% 0.0518 -0.124)
OKLCHoklch(28.95% 0.134 292.7)
XYZxyz(3.8805, 2.0448, 12.7580)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311266 #476612
analogous
#121D66 #311266 #5B1266
triadic
#311266 #663112 #126631
tetradic
#311266 #66121D #476612 #12665B
square
#311266 #66121D #476612 #12665B
split-complementary
#311266 #665B12 #1D6612
monochromatic
#0C051A #180932 #311266 #4A1B9A #6324CE

Accessibility & contrast

On white

14.90
#311266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311266
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311266#FFFFFF#000000##FFFFFF
##3112661.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#202A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311266;
/* rgb */ color: rgb(49, 18, 102);
/* oklch */ color: oklch(29.0% 0.134 292.7);
Tailwind
colors: {
  custom: {
    50: '#705492',
    500: '#311266',
    950: '#000000',
  },
}
SCSS
$custom: #311266;
$custom-light: #705492;
$custom-dark: #000000;
JSON
{
  "hex": "#311266",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 262.143,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28954,
    "c": 0.13434,
    "h": 292.7
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#311266
secondary
#779E36
accent
#ED3BAB
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311266

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

Preview Lab → · Contrast checker → · Palette generator →

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