#331A5A#331A5A

#331A5A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.109 H 297.0°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#331A5A
RGBrgb(51, 26, 90)
HSLhsl(263, 55%, 23%)
HSVhsv(263, 71%, 35%)
CMYKcmyk(43.3%, 71.1%, 0%, 64.7%)
CIE-LABlab(16.41, 27.91, -34.07)
CIE-LCHlch(16.41, 44.04, 309.32°)
OKLaboklab(29.15% 0.0496 -0.0972)
OKLCHoklch(29.15% 0.109 297)
XYZxyz(3.5796, 2.1807, 9.9032)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A5A #415A1A
analogous
#1A215A #331A5A #531A5A
triadic
#331A5A #5A331A #1A5A33
tetradic
#331A5A #5A1A21 #415A1A #1A5A53
square
#331A5A #5A1A21 #415A1A #1A5A53
split-complementary
#331A5A #5A531A #215A1A
monochromatic
#0D0718 #180C2B #331A5A #4E2889 #6935B9

Accessibility & contrast

On white

14.62
#331A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A5A
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A5A#FFFFFF#000000##FFFFFF
##331A5A1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#292937
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331a5a;
/* rgb */ color: rgb(51, 26, 90);
/* oklch */ color: oklch(29.2% 0.109 297.0);
Tailwind
colors: {
  custom: {
    50: '#6f5889',
    500: '#331a5a',
    950: '#000000',
  },
}
SCSS
$custom: #331a5a;
$custom-light: #6f5889;
$custom-dark: #000000;
JSON
{
  "hex": "#331a5a",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 263.438,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29154,
    "c": 0.10911,
    "h": 297
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#331A5A
secondary
#719040
accent
#DF49A4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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