#331854#331854

#331854 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.104 H 300.5°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#331854
RGBrgb(51, 24, 84)
HSLhsl(267, 56%, 21%)
HSVhsv(267, 71%, 33%)
CMYKcmyk(39.3%, 71.4%, 0%, 67.1%)
CIE-LABlab(15.47, 27.32, -31.54)
CIE-LCHlch(15.47, 41.73, 310.90°)
OKLaboklab(28.32% 0.0529 -0.0897)
OKLCHoklch(28.32% 0.104 300.5)
XYZxyz(3.2917, 1.9971, 8.5979)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331854 #395418
analogous
#181B54 #331854 #511854
triadic
#331854 #543318 #185433
tetradic
#331854 #54181B #395418 #185451
square
#331854 #54181B #395418 #185451
split-complementary
#331854 #545118 #1B5418
monochromatic
#0E0718 #160A24 #331854 #502684 #6D33B3

Accessibility & contrast

On white

15.01
#331854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331854
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331854#FFFFFF#000000##FFFFFF
##3318541.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#2C2633
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331854;
/* rgb */ color: rgb(51, 24, 84);
/* oklch */ color: oklch(28.3% 0.104 300.5);
Tailwind
colors: {
  custom: {
    50: '#6e5785',
    500: '#331854',
    950: '#000000',
  },
}
SCSS
$custom: #331854;
$custom-light: #6e5785;
$custom-dark: #000000;
JSON
{
  "hex": "#331854",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 84
  },
  "hsl": {
    "h": 267,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28322,
    "c": 0.10419,
    "h": 300.5
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#331854
secondary
#688B3D
accent
#DF499B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331854

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

Preview Lab → · Contrast checker → · Palette generator →

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