#331269#331269

#331269 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.138 H 293.1°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#331269
RGBrgb(51, 18, 105)
HSLhsl(263, 71%, 24%)
HSVhsv(263, 83%, 41%)
CMYKcmyk(51.4%, 82.9%, 0%, 58.8%)
CIE-LABlab(16.29, 36.62, -44.21)
CIE-LCHlch(16.29, 57.41, 309.64°)
OKLaboklab(29.5% 0.0541 -0.1269)
OKLCHoklch(29.5% 0.138 293.1)
XYZxyz(4.1306, 2.1562, 13.5604)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331269 #486912
analogous
#121C69 #331269 #5F1269
triadic
#331269 #693312 #126933
tetradic
#331269 #69121C #486912 #12695F
square
#331269 #69121C #486912 #12695F
split-complementary
#331269 #695F12 #1C6912
monochromatic
#0D041A #1A0935 #331269 #4C1B9D #6624D1

Accessibility & contrast

On white

14.67
#331269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331269
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331269#FFFFFF#000000##FFFFFF
##3312691.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296B
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#222B3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331269;
/* rgb */ color: rgb(51, 18, 105);
/* oklch */ color: oklch(29.5% 0.138 293.1);
Tailwind
colors: {
  custom: {
    50: '#715495',
    500: '#331269',
    950: '#000000',
  },
}
SCSS
$custom: #331269;
$custom-light: #715495;
$custom-dark: #000000;
JSON
{
  "hex": "#331269",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 262.759,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29501,
    "c": 0.13798,
    "h": 293.1
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#331269
secondary
#78A136
accent
#ED3AAA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331269

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

Preview Lab → · Contrast checker → · Palette generator →

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