#331C58#331C58

#331C58 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.103 H 297.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#331C58
RGBrgb(51, 28, 88)
HSLhsl(263, 52%, 23%)
HSVhsv(263, 68%, 35%)
CMYKcmyk(42%, 68.2%, 0%, 65.5%)
CIE-LABlab(16.69, 26.08, -32.26)
CIE-LCHlch(16.69, 41.49, 308.95°)
OKLaboklab(29.31% 0.0473 -0.0919)
OKLCHoklch(29.31% 0.103 297.2)
XYZxyz(3.5415, 2.2388, 9.4762)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C58 #41581C
analogous
#1C2358 #331C58 #511C58
triadic
#331C58 #58331C #1C5833
tetradic
#331C58 #581C23 #41581C #1C5851
square
#331C58 #581C23 #41581C #1C5851
split-complementary
#331C58 #58511C #23581C
monochromatic
#0D0717 #180D2A #331C58 #4E2B86 #693AB5

Accessibility & contrast

On white

14.50
#331C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C58
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C58#FFFFFF#000000##FFFFFF
##331C581.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002957
Tritanopia (blue-blind)
#2A2937
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331c58;
/* rgb */ color: rgb(51, 28, 88);
/* oklch */ color: oklch(29.3% 0.103 297.2);
Tailwind
colors: {
  custom: {
    50: '#6e5988',
    500: '#331c58',
    950: '#000000',
  },
}
SCSS
$custom: #331c58;
$custom-light: #6e5988;
$custom-dark: #000000;
JSON
{
  "hex": "#331c58",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 263,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29308,
    "c": 0.10334,
    "h": 297.2
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#331C58
secondary
#718E42
accent
#DB4DA5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331C58

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

Preview Lab → · Contrast checker → · Palette generator →

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