#3318A1#3318A1

#3318A1 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.3% C 0.198 H 279.0°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#3318A1
RGBrgb(51, 24, 161)
HSLhsl(252, 74%, 36%)
HSVhsv(252, 85%, 63%)
CMYKcmyk(68.3%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.44, 50.25, -67.75)
CIE-LCHlch(23.44, 84.35, 306.57°)
OKLaboklab(36.28% 0.0309 -0.1956)
OKLCHoklch(36.28% 0.198 279)
XYZxyz(8.1228, 3.9296, 34.0417)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3318A1 #86A118
analogous
#1842A1 #3318A1 #7818A1
triadic
#3318A1 #A13318 #18A133
tetradic
#3318A1 #A11842 #86A118 #18A178
square
#3318A1 #A11842 #86A118 #18A178
split-complementary
#3318A1 #A17818 #42A118
monochromatic
#110836 #22106C #3318A1 #4420D6 #6C4FE5

Accessibility & contrast

On white

11.76
#3318A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3318A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3318A1
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3318A1#FFFFFF#000000##FFFFFF
##3318A11.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00329F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3318a1;
/* rgb */ color: rgb(51, 24, 161);
/* oklch */ color: oklch(36.3% 0.198 279.0);
Tailwind
colors: {
  custom: {
    50: '#7c5bbe',
    500: '#3318a1',
    950: '#000000',
  },
}
SCSS
$custom: #3318a1;
$custom-light: #7c5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3318a1",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 251.825,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36284,
    "c": 0.19803,
    "h": 279
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#3318A1
secondary
#AFC74E
accent
#F137CC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3318A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3318A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva