#331268#331268

#331268 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.137 H 293.5°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#331268
RGBrgb(51, 18, 104)
HSLhsl(263, 70%, 24%)
HSVhsv(263, 83%, 41%)
CMYKcmyk(51%, 82.7%, 0%, 59.2%)
CIE-LABlab(16.18, 36.34, -43.72)
CIE-LCHlch(16.18, 56.85, 309.73°)
OKLaboklab(29.4% 0.0545 -0.1255)
OKLCHoklch(29.4% 0.137 293.5)
XYZxyz(4.0795, 2.1358, 13.2913)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331268 #476812
analogous
#121C68 #331268 #5E1268
triadic
#331268 #683312 #126833
tetradic
#331268 #68121C #476812 #12685E
square
#331268 #68121C #476812 #12685E
split-complementary
#331268 #685E12 #1C6812
monochromatic
#0D051A #190934 #331268 #4D1B9C #6624D0

Accessibility & contrast

On white

14.71
#331268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331268
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331268#FFFFFF#000000##FFFFFF
##3312681.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#222A3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331268;
/* rgb */ color: rgb(51, 18, 104);
/* oklch */ color: oklch(29.4% 0.137 293.5);
Tailwind
colors: {
  custom: {
    50: '#715494',
    500: '#331268',
    950: '#000000',
  },
}
SCSS
$custom: #331268;
$custom-light: #715494;
$custom-dark: #000000;
JSON
{
  "hex": "#331268",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 263.023,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29399,
    "c": 0.1368,
    "h": 293.5
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#331268
secondary
#77A036
accent
#ED3BA9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331268

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

Preview Lab → · Contrast checker → · Palette generator →

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