#331868#331868

#331868 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.130 H 292.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#331868
RGBrgb(51, 24, 104)
HSLhsl(260, 63%, 25%)
HSVhsv(260, 77%, 41%)
CMYKcmyk(51%, 76.9%, 0%, 59.2%)
CIE-LABlab(17.26, 33.28, -41.97)
CIE-LCHlch(17.26, 53.56, 308.42°)
OKLaboklab(30.15% 0.0491 -0.1204)
OKLCHoklch(30.15% 0.13 292.2)
XYZxyz(4.1899, 2.3564, 13.3281)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331868 #4D6818
analogous
#182568 #331868 #5B1868
triadic
#331868 #683318 #186833
tetradic
#331868 #681825 #4D6818 #18685B
square
#331868 #681825 #4D6818 #18685B
split-complementary
#331868 #685B18 #256818
monochromatic
#0C0619 #1B0D36 #331868 #4B239A #642FCB

Accessibility & contrast

On white

14.27
#331868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331868
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331868#FFFFFF#000000##FFFFFF
##3318681.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#222D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331868;
/* rgb */ color: rgb(51, 24, 104);
/* oklch */ color: oklch(30.2% 0.130 292.2);
Tailwind
colors: {
  custom: {
    50: '#715894',
    500: '#331868',
    950: '#000000',
  },
}
SCSS
$custom: #331868;
$custom-light: #715894;
$custom-dark: #000000;
JSON
{
  "hex": "#331868",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 260.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30151,
    "c": 0.12999,
    "h": 292.2
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#331868
secondary
#7E9E3E
accent
#E642AE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331868

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

Preview Lab → · Contrast checker → · Palette generator →

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