#331B45#331B45

#331B45 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.079 H 308.5°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#331B45
RGBrgb(51, 27, 69)
HSLhsl(274, 44%, 19%)
HSVhsv(274, 61%, 27%)
CMYKcmyk(26.1%, 60.9%, 0%, 72.9%)
CIE-LABlab(15.05, 21.17, -21.94)
CIE-LCHlch(15.05, 30.48, 313.97°)
OKLaboklab(27.66% 0.049 -0.0616)
OKLCHoklch(27.66% 0.079 308.5)
XYZxyz(2.8311, 1.9174, 5.8500)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B45 #2D451B
analogous
#1E1B45 #331B45 #451B42
triadic
#331B45 #45331B #1B4533
tetradic
#331B45 #451E1B #2D451B #1B4245
square
#331B45 #451E1B #2D451B #1B4245
split-complementary
#331B45 #42451B #1B451E
monochromatic
#100916 #120A19 #331B45 #542C71 #743D9D

Accessibility & contrast

On white

15.18
#331B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B45
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B45#FFFFFF#000000##FFFFFF
##331B451.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2546
Deuteranopia (green-blind)
#162644
Tritanopia (blue-blind)
#30222D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331b45;
/* rgb */ color: rgb(51, 27, 69);
/* oklch */ color: oklch(27.7% 0.079 308.5);
Tailwind
colors: {
  custom: {
    50: '#6c5879',
    500: '#331b45',
    950: '#000000',
  },
}
SCSS
$custom: #331b45;
$custom-light: #6c5879;
$custom-dark: #000000;
JSON
{
  "hex": "#331b45",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 274.286,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27655,
    "c": 0.07869,
    "h": 308.5
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#331B45
secondary
#5A7B41
accent
#D3548B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331B45

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

Preview Lab → · Contrast checker → · Palette generator →

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