#331354#331354

#331354 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.111 H 302.0°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#331354
RGBrgb(51, 19, 84)
HSLhsl(270, 63%, 20%)
HSVhsv(270, 77%, 33%)
CMYKcmyk(39.3%, 77.4%, 0%, 67.1%)
CIE-LABlab(14.45, 30.15, -33.19)
CIE-LCHlch(14.45, 44.84, 312.25°)
OKLaboklab(27.6% 0.059 -0.0946)
OKLCHoklch(27.6% 0.111 302)
XYZxyz(3.1980, 1.8096, 8.5666)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331354 #345413
analogous
#131454 #331354 #531354
triadic
#331354 #543313 #135433
tetradic
#331354 #541314 #345413 #135453
square
#331354 #541314 #345413 #135453
split-complementary
#331354 #545313 #145413
monochromatic
#0F0619 #150822 #331354 #511E86 #702AB8

Accessibility & contrast

On white

15.42
#331354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331354
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331354#FFFFFF#000000##FFFFFF
##3313541.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#2C2332
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331354;
/* rgb */ color: rgb(51, 19, 84);
/* oklch */ color: oklch(27.6% 0.111 302.0);
Tailwind
colors: {
  custom: {
    50: '#6e5485',
    500: '#331354',
    950: '#000000',
  },
}
SCSS
$custom: #331354;
$custom-light: #6e5485;
$custom-dark: #000000;
JSON
{
  "hex": "#331354",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 269.538,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27595,
    "c": 0.11147,
    "h": 302
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#331354
secondary
#628C36
accent
#E64295
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331354

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

Preview Lab → · Contrast checker → · Palette generator →

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