#331A43#331A43

#331A43 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.078 H 310.4°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#331A43
RGBrgb(51, 26, 67)
HSLhsl(277, 44%, 18%)
HSVhsv(277, 61%, 26%)
CMYKcmyk(23.9%, 61.2%, 0%, 73.7%)
CIE-LABlab(14.67, 21.26, -21.15)
CIE-LCHlch(14.67, 29.99, 315.15°)
OKLaboklab(27.33% 0.0504 -0.0593)
OKLCHoklch(27.33% 0.078 310.4)
XYZxyz(2.7476, 1.8479, 5.5210)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A43 #2A431A
analogous
#1E1A43 #331A43 #431A3E
triadic
#331A43 #43331A #1A4333
tetradic
#331A43 #431E1A #2A431A #1A3E43
square
#331A43 #431E1A #2A431A #1A3E43
split-complementary
#331A43 #3E431A #1A431E
monochromatic
#110916 #110917 #331A43 #552B6F #763C9B

Accessibility & contrast

On white

15.33
#331A43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331A43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A43
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A43#FFFFFF#000000##FFFFFF
##331A431.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2444
Deuteranopia (green-blind)
#162542
Tritanopia (blue-blind)
#31212B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331a43;
/* rgb */ color: rgb(51, 26, 67);
/* oklch */ color: oklch(27.3% 0.078 310.4);
Tailwind
colors: {
  custom: {
    50: '#6c5777',
    500: '#331a43',
    950: '#000000',
  },
}
SCSS
$custom: #331a43;
$custom-light: #6c5777;
$custom-dark: #000000;
JSON
{
  "hex": "#331a43",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 67
  },
  "hsl": {
    "h": 276.585,
    "s": 44.086,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27332,
    "c": 0.07784,
    "h": 310.4
  },
  "luminance": 0.01848
}

Semantic roles & 50–950 ramp

primary
#331A43
secondary
#567940
accent
#D45486
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #331A43

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

Preview Lab → · Contrast checker → · Palette generator →

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