#331267#331267

#331267 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.136 H 293.8°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#331267
RGBrgb(51, 18, 103)
HSLhsl(263, 70%, 24%)
HSVhsv(263, 83%, 40%)
CMYKcmyk(50.5%, 82.5%, 0%, 59.6%)
CIE-LABlab(16.08, 36.05, -43.23)
CIE-LCHlch(16.08, 56.29, 309.83°)
OKLaboklab(29.3% 0.0548 -0.124)
OKLCHoklch(29.3% 0.136 293.8)
XYZxyz(4.0291, 2.1156, 13.0254)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331267 #466712
analogous
#121B67 #331267 #5D1267
triadic
#331267 #673312 #126733
tetradic
#331267 #67121B #466712 #12675D
square
#331267 #67121B #466712 #12675D
split-complementary
#331267 #675D12 #1B6712
monochromatic
#0D051A #190933 #331267 #4D1B9B #6724CF

Accessibility & contrast

On white

14.76
#331267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331267
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331267#FFFFFF#000000##FFFFFF
##3312671.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#232A3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331267;
/* rgb */ color: rgb(51, 18, 103);
/* oklch */ color: oklch(29.3% 0.136 293.8);
Tailwind
colors: {
  custom: {
    50: '#715493',
    500: '#331267',
    950: '#000000',
  },
}
SCSS
$custom: #331267;
$custom-light: #715493;
$custom-dark: #000000;
JSON
{
  "hex": "#331267",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 263.294,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29297,
    "c": 0.13561,
    "h": 293.8
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#331267
secondary
#769F36
accent
#ED3BA8
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331267

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

Preview Lab → · Contrast checker → · Palette generator →

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