#331266#331266

#331266 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.134 H 294.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#331266
RGBrgb(51, 18, 102)
HSLhsl(264, 70%, 24%)
HSVhsv(264, 82%, 40%)
CMYKcmyk(50%, 82.4%, 0%, 60%)
CIE-LABlab(15.98, 35.77, -42.74)
CIE-LCHlch(15.98, 55.73, 309.92°)
OKLaboklab(29.2% 0.0551 -0.1226)
OKLCHoklch(29.2% 0.134 294.2)
XYZxyz(3.9792, 2.0956, 12.7626)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331266 #456612
analogous
#121B66 #331266 #5D1266
triadic
#331266 #663312 #126633
tetradic
#331266 #66121B #456612 #12665D
square
#331266 #66121B #456612 #12665D
split-complementary
#331266 #665D12 #1B6612
monochromatic
#0D051A #190932 #331266 #4D1B9A #6724CE

Accessibility & contrast

On white

14.80
#331266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331266
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331266#FFFFFF#000000##FFFFFF
##3312661.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#24293C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331266;
/* rgb */ color: rgb(51, 18, 102);
/* oklch */ color: oklch(29.2% 0.134 294.2);
Tailwind
colors: {
  custom: {
    50: '#715492',
    500: '#331266',
    950: '#000000',
  },
}
SCSS
$custom: #331266;
$custom-light: #715492;
$custom-dark: #000000;
JSON
{
  "hex": "#331266",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 263.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29195,
    "c": 0.13443,
    "h": 294.2
  },
  "luminance": 0.02096
}

Semantic roles & 50–950 ramp

primary
#331266
secondary
#759E36
accent
#ED3BA7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331266

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

Preview Lab → · Contrast checker → · Palette generator →

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