#331253#331253

#331253 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.112 H 302.7°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#331253
RGBrgb(51, 18, 83)
HSLhsl(270, 64%, 20%)
HSVhsv(270, 78%, 33%)
CMYKcmyk(38.6%, 78.3%, 0%, 67.5%)
CIE-LABlab(14.18, 30.40, -32.96)
CIE-LCHlch(14.18, 44.84, 312.68°)
OKLaboklab(27.37% 0.0604 -0.0939)
OKLCHoklch(27.37% 0.112 302.7)
XYZxyz(3.1425, 1.7609, 8.3563)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331253 #325312
analogous
#131253 #331253 #531252
triadic
#331253 #533312 #125333
tetradic
#331253 #531312 #325312 #125253
square
#331253 #531312 #325312 #125253
split-complementary
#331253 #525312 #125313
monochromatic
#0F0519 #140721 #331253 #521D85 #7128B8

Accessibility & contrast

On white

15.53
#331253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331253
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331253#FFFFFF#000000##FFFFFF
##3312531.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#2C2231
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331253;
/* rgb */ color: rgb(51, 18, 83);
/* oklch */ color: oklch(27.4% 0.112 302.7);
Tailwind
colors: {
  custom: {
    50: '#6e5384',
    500: '#331253',
    950: '#000000',
  },
}
SCSS
$custom: #331253;
$custom-light: #6e5384;
$custom-dark: #000000;
JSON
{
  "hex": "#331253",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 270.462,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27372,
    "c": 0.11161,
    "h": 302.7
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#331253
secondary
#608C35
accent
#E74093
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #331253

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

Preview Lab → · Contrast checker → · Palette generator →

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