#331A45#331A45

#331A45 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.081 H 308.9°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#331A45
RGBrgb(51, 26, 69)
HSLhsl(275, 45%, 19%)
HSVhsv(275, 62%, 27%)
CMYKcmyk(26.1%, 62.3%, 0%, 72.9%)
CIE-LABlab(14.80, 21.81, -22.33)
CIE-LCHlch(14.80, 31.21, 314.33°)
OKLaboklab(27.47% 0.0506 -0.0627)
OKLCHoklch(27.47% 0.081 308.9)
XYZxyz(2.8086, 1.8723, 5.8425)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A45 #2C451A
analogous
#1D1A45 #331A45 #451A41
triadic
#331A45 #45331A #1A4533
tetradic
#331A45 #451D1A #2C451A #1A4145
square
#331A45 #451D1A #2C451A #1A4145
split-complementary
#331A45 #41451A #1A451D
monochromatic
#100816 #120919 #331A45 #542B71 #753B9E

Accessibility & contrast

On white

15.28
#331A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A45
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A45#FFFFFF#000000##FFFFFF
##331A451.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2446
Deuteranopia (green-blind)
#152644
Tritanopia (blue-blind)
#30222C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331a45;
/* rgb */ color: rgb(51, 26, 69);
/* oklch */ color: oklch(27.5% 0.081 308.9);
Tailwind
colors: {
  custom: {
    50: '#6c5779',
    500: '#331a45',
    950: '#000000',
  },
}
SCSS
$custom: #331a45;
$custom-light: #6c5779;
$custom-dark: #000000;
JSON
{
  "hex": "#331a45",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 69
  },
  "hsl": {
    "h": 274.884,
    "s": 45.263,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27474,
    "c": 0.08057,
    "h": 308.9
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#331A45
secondary
#597B40
accent
#D55389
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331A45

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

Preview Lab → · Contrast checker → · Palette generator →

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