#331A5C#331A5C

#331A5C is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.112 H 296.2°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#331A5C
RGBrgb(51, 26, 92)
HSLhsl(263, 56%, 23%)
HSVhsv(263, 72%, 36%)
CMYKcmyk(44.6%, 71.7%, 0%, 63.9%)
CIE-LABlab(16.58, 28.51, -35.13)
CIE-LCHlch(16.58, 45.24, 309.06°)
OKLaboklab(29.33% 0.0493 -0.1003)
OKLCHoklch(29.33% 0.112 296.2)
XYZxyz(3.6659, 2.2152, 10.3576)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A5C #435C1A
analogous
#1A225C #331A5C #541A5C
triadic
#331A5C #5C331A #1A5C33
tetradic
#331A5C #5C1A22 #435C1A #1A5C54
square
#331A5C #5C1A22 #435C1A #1A5C54
split-complementary
#331A5C #5C541A #225C1A
monochromatic
#0D0718 #190D2C #331A5C #4D278C #6835BB

Accessibility & contrast

On white

14.55
#331A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A5C
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A5C#FFFFFF#000000##FFFFFF
##331A5C1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#282A38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331a5c;
/* rgb */ color: rgb(51, 26, 92);
/* oklch */ color: oklch(29.3% 0.112 296.2);
Tailwind
colors: {
  custom: {
    50: '#6f588b',
    500: '#331a5c',
    950: '#000000',
  },
}
SCSS
$custom: #331a5c;
$custom-light: #6f588b;
$custom-dark: #000000;
JSON
{
  "hex": "#331a5c",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 262.727,
    "s": 55.932,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2933,
    "c": 0.11177,
    "h": 296.2
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#331A5C
secondary
#739240
accent
#DF49A6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331A5C

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

Preview Lab → · Contrast checker → · Palette generator →

#331A5C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva