#331853#331853

#331853 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.103 H 301.0°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#331853
RGBrgb(51, 24, 83)
HSLhsl(267, 55%, 21%)
HSVhsv(267, 71%, 33%)
CMYKcmyk(38.6%, 71.1%, 0%, 67.5%)
CIE-LABlab(15.39, 27.03, -31.00)
CIE-LCHlch(15.39, 41.13, 311.09°)
OKLaboklab(28.24% 0.053 -0.0881)
OKLCHoklch(28.24% 0.103 301)
XYZxyz(3.2528, 1.9816, 8.3930)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331853 #385318
analogous
#181A53 #331853 #501853
triadic
#331853 #533318 #185333
tetradic
#331853 #53181A #385318 #185350
square
#331853 #53181A #385318 #185350
split-complementary
#331853 #535018 #1A5318
monochromatic
#0F0718 #160A24 #331853 #502682 #6D33B2

Accessibility & contrast

On white

15.04
#331853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331853 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331853
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331853#FFFFFF#000000##FFFFFF
##3318531.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#012652
Tritanopia (blue-blind)
#2C2533
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331853;
/* rgb */ color: rgb(51, 24, 83);
/* oklch */ color: oklch(28.2% 0.103 301.0);
Tailwind
colors: {
  custom: {
    50: '#6e5784',
    500: '#331853',
    950: '#000000',
  },
}
SCSS
$custom: #331853;
$custom-light: #6e5784;
$custom-dark: #000000;
JSON
{
  "hex": "#331853",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 83
  },
  "hsl": {
    "h": 267.458,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28237,
    "c": 0.10286,
    "h": 301
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#331853
secondary
#678A3D
accent
#DE499A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331853

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

Preview Lab → · Contrast checker → · Palette generator →

#331853 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva