#331C63#331C63

#331C63 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.118 H 292.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#331C63
RGBrgb(51, 28, 99)
HSLhsl(259, 56%, 25%)
HSVhsv(259, 72%, 39%)
CMYKcmyk(48.5%, 71.7%, 0%, 61.2%)
CIE-LABlab(17.62, 29.46, -38.08)
CIE-LCHlch(17.62, 48.14, 307.73°)
OKLaboklab(30.27% 0.0459 -0.109)
OKLCHoklch(30.27% 0.118 292.8)
XYZxyz(4.0320, 2.4350, 12.0595)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C63 #4C631C
analogous
#1C2863 #331C63 #571C63
triadic
#331C63 #63331C #1C6333
tetradic
#331C63 #631C28 #4C631C #1C6357
square
#331C63 #631C28 #4C631C #1C6357
split-complementary
#331C63 #63571C #28631C
monochromatic
#0C0718 #1A0F33 #331C63 #4C2993 #6437C2

Accessibility & contrast

On white

14.12
#331C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331C63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C63
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C63#FFFFFF#000000##FFFFFF
##331C631.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002A62
Tritanopia (blue-blind)
#252D3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331c63;
/* rgb */ color: rgb(51, 28, 99);
/* oklch */ color: oklch(30.3% 0.118 292.8);
Tailwind
colors: {
  custom: {
    50: '#705a90',
    500: '#331c63',
    950: '#000000',
  },
}
SCSS
$custom: #331c63;
$custom-light: #705a90;
$custom-dark: #000000;
JSON
{
  "hex": "#331c63",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 259.437,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30269,
    "c": 0.11824,
    "h": 292.8
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #331C63

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

Preview Lab → · Contrast checker → · Palette generator →

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