#331860#331860

#331860 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.120 H 295.1°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#331860
RGBrgb(51, 24, 96)
HSLhsl(263, 60%, 24%)
HSVhsv(263, 75%, 38%)
CMYKcmyk(46.9%, 75%, 0%, 62.4%)
CIE-LABlab(16.51, 30.87, -37.90)
CIE-LCHlch(16.51, 48.89, 309.17°)
OKLaboklab(29.39% 0.0509 -0.1084)
OKLCHoklch(29.39% 0.12 295.1)
XYZxyz(3.8026, 2.2015, 11.2886)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331860 #456018
analogous
#182160 #331860 #571860
triadic
#331860 #603318 #186033
tetradic
#331860 #601821 #456018 #186057
square
#331860 #601821 #456018 #186057
split-complementary
#331860 #605718 #216018
monochromatic
#0D0618 #190C2F #331860 #4D2491 #6730C2

Accessibility & contrast

On white

14.58
#331860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331860 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331860
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331860#FFFFFF#000000##FFFFFF
##3318601.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#272A3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331860;
/* rgb */ color: rgb(51, 24, 96);
/* oklch */ color: oklch(29.4% 0.120 295.1);
Tailwind
colors: {
  custom: {
    50: '#70578e',
    500: '#331860',
    950: '#000000',
  },
}
SCSS
$custom: #331860;
$custom-light: #70578e;
$custom-dark: #000000;
JSON
{
  "hex": "#331860",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 262.5,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29392,
    "c": 0.1198,
    "h": 295.1
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#331860
secondary
#75963D
accent
#E345A8
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331860

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

Preview Lab → · Contrast checker → · Palette generator →

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