#331C62#331C62

#331C62 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.117 H 293.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#331C62
RGBrgb(51, 28, 98)
HSLhsl(260, 56%, 25%)
HSVhsv(260, 71%, 38%)
CMYKcmyk(48%, 71.4%, 0%, 61.6%)
CIE-LABlab(17.53, 29.15, -37.56)
CIE-LCHlch(17.53, 47.54, 307.81°)
OKLaboklab(30.18% 0.046 -0.1075)
OKLCHoklch(30.18% 0.117 293.2)
XYZxyz(3.9845, 2.4160, 11.8093)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C62 #4B621C
analogous
#1C2862 #331C62 #561C62
triadic
#331C62 #62331C #1C6233
tetradic
#331C62 #621C28 #4B621C #1C6256
square
#331C62 #621C28 #4B621C #1C6256
split-complementary
#331C62 #62561C #28621C
monochromatic
#0C0718 #1A0E32 #331C62 #4C2A92 #6537C1

Accessibility & contrast

On white

14.16
#331C62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331C62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C62
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C62#FFFFFF#000000##FFFFFF
##331C621.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#252D3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331c62;
/* rgb */ color: rgb(51, 28, 98);
/* oklch */ color: oklch(30.2% 0.117 293.2);
Tailwind
colors: {
  custom: {
    50: '#6f5a8f',
    500: '#331c62',
    950: '#000000',
  },
}
SCSS
$custom: #331c62;
$custom-light: #6f5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#331c62",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 98
  },
  "hsl": {
    "h": 259.714,
    "s": 55.556,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30179,
    "c": 0.11691,
    "h": 293.2
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#331C62
secondary
#7B9743
accent
#DF49AE
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331C62

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

Preview Lab → · Contrast checker → · Palette generator →

#331C62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva