#331862#331862

#331862 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.122 H 294.4°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#331862
RGBrgb(51, 24, 98)
HSLhsl(262, 61%, 24%)
HSVhsv(262, 76%, 38%)
CMYKcmyk(48%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.69, 31.47, -38.93)
CIE-LCHlch(16.69, 50.06, 308.95°)
OKLaboklab(29.58% 0.0505 -0.1115)
OKLCHoklch(29.58% 0.122 294.4)
XYZxyz(3.8959, 2.2388, 11.7798)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331862 #476218
analogous
#182262 #331862 #581862
triadic
#331862 #623318 #186233
tetradic
#331862 #621822 #476218 #186258
square
#331862 #621822 #476218 #186258
split-complementary
#331862 #625818 #226218
monochromatic
#0D0619 #190C31 #331862 #4D2493 #6630C4

Accessibility & contrast

On white

14.50
#331862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331862
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331862#FFFFFF#000000##FFFFFF
##3318621.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#262B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331862;
/* rgb */ color: rgb(51, 24, 98);
/* oklch */ color: oklch(29.6% 0.122 294.4);
Tailwind
colors: {
  custom: {
    50: '#70578f',
    500: '#331862',
    950: '#000000',
  },
}
SCSS
$custom: #331862;
$custom-light: #70578f;
$custom-dark: #000000;
JSON
{
  "hex": "#331862",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 261.892,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29578,
    "c": 0.12237,
    "h": 294.4
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#331862
secondary
#77983E
accent
#E444A9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331862

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

Preview Lab → · Contrast checker → · Palette generator →

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