#331062#331062

#331062 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.132 H 296.2°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#331062
RGBrgb(51, 16, 98)
HSLhsl(266, 72%, 22%)
HSVhsv(266, 84%, 38%)
CMYKcmyk(48%, 83.7%, 0%, 61.6%)
CIE-LABlab(15.26, 35.56, -41.28)
CIE-LCHlch(15.26, 54.49, 310.74°)
OKLaboklab(28.57% 0.0582 -0.1183)
OKLCHoklch(28.57% 0.132 296.2)
XYZxyz(3.7545, 1.9561, 11.7327)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331062 #3F6210
analogous
#101662 #331062 #5C1062
triadic
#331062 #623310 #106233
tetradic
#331062 #621016 #3F6210 #10625C
square
#331062 #621016 #3F6210 #10625C
split-complementary
#331062 #625C10 #166210
monochromatic
#0E041A #18072D #331062 #4E1997 #6A21CB

Accessibility & contrast

On white

15.09
#331062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331062
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331062#FFFFFF#000000##FFFFFF
##3310621.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#262739
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331062;
/* rgb */ color: rgb(51, 16, 98);
/* oklch */ color: oklch(28.6% 0.132 296.2);
Tailwind
colors: {
  custom: {
    50: '#71538f',
    500: '#331062',
    950: '#000000',
  },
}
SCSS
$custom: #331062;
$custom-light: #71538f;
$custom-dark: #000000;
JSON
{
  "hex": "#331062",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 265.61,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28566,
    "c": 0.13183,
    "h": 296.2
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#331062
secondary
#6E9B33
accent
#EF39A1
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331062

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

Preview Lab → · Contrast checker → · Palette generator →

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