#331A60#331A60

#331A60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.7% C 0.117 H 294.6°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#331A60
RGBrgb(51, 26, 96)
HSLhsl(261, 57%, 24%)
HSVhsv(261, 73%, 38%)
CMYKcmyk(46.9%, 72.9%, 0%, 62.4%)
CIE-LABlab(16.93, 29.72, -37.23)
CIE-LCHlch(16.93, 47.64, 308.61°)
OKLaboklab(29.69% 0.0487 -0.1065)
OKLCHoklch(29.69% 0.117 294.6)
XYZxyz(3.8454, 2.2870, 11.3029)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A60 #47601A
analogous
#1A2460 #331A60 #561A60
triadic
#331A60 #60331A #1A6033
tetradic
#331A60 #601A24 #47601A #1A6056
square
#331A60 #601A24 #47601A #1A6056
split-complementary
#331A60 #60561A #24601A
monochromatic
#0D0718 #190D30 #331A60 #4D2790 #6634C0

Accessibility & contrast

On white

14.41
#331A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331A60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A60
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A60#FFFFFF#000000##FFFFFF
##331A601.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#272B3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331a60;
/* rgb */ color: rgb(51, 26, 96);
/* oklch */ color: oklch(29.7% 0.117 294.6);
Tailwind
colors: {
  custom: {
    50: '#6f588e',
    500: '#331a60',
    950: '#000000',
  },
}
SCSS
$custom: #331a60;
$custom-light: #6f588e;
$custom-dark: #000000;
JSON
{
  "hex": "#331a60",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 96
  },
  "hsl": {
    "h": 261.429,
    "s": 57.377,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29688,
    "c": 0.11707,
    "h": 294.6
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#331A60
secondary
#779640
accent
#E147AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331A60

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

Preview Lab → · Contrast checker → · Palette generator →

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