#3318A0#3318A0

#3318A0 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.197 H 279.1°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#3318A0
RGBrgb(51, 24, 160)
HSLhsl(252, 74%, 36%)
HSVhsv(252, 85%, 63%)
CMYKcmyk(68.1%, 85%, 0%, 37.3%)
CIE-LABlab(23.32, 49.96, -67.33)
CIE-LCHlch(23.32, 83.84, 306.58°)
OKLaboklab(36.17% 0.0312 -0.1944)
OKLCHoklch(36.17% 0.197 279.1)
XYZxyz(8.0350, 3.8945, 33.5792)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3318A0 #85A018
analogous
#1841A0 #3318A0 #7718A0
triadic
#3318A0 #A03318 #18A033
tetradic
#3318A0 #A01841 #85A018 #18A077
square
#3318A0 #A01841 #85A018 #18A077
split-complementary
#3318A0 #A07718 #41A018
monochromatic
#110836 #22106B #3318A0 #4420D5 #6C4EE4

Accessibility & contrast

On white

11.80
#3318A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3318A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3318A0
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3318A0#FFFFFF#000000##FFFFFF
##3318A01.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3318a0;
/* rgb */ color: rgb(51, 24, 160);
/* oklch */ color: oklch(36.2% 0.197 279.1);
Tailwind
colors: {
  custom: {
    50: '#7c5bbd',
    500: '#3318a0',
    950: '#000000',
  },
}
SCSS
$custom: #3318a0;
$custom-light: #7c5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3318a0",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 251.912,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36169,
    "c": 0.1969,
    "h": 279.1
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3318A0

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

Preview Lab → · Contrast checker → · Palette generator →

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