#3317B4#3317B4

#3317B4 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.4% C 0.220 H 276.5°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3317B4
RGBrgb(51, 23, 180)
HSLhsl(251, 77%, 40%)
HSVhsv(251, 87%, 71%)
CMYKcmyk(71.7%, 87.2%, 0%, 29.4%)
CIE-LABlab(25.60, 56.02, -75.63)
CIE-LCHlch(25.60, 94.11, 306.53°)
OKLaboklab(38.42% 0.0248 -0.2185)
OKLCHoklch(38.42% 0.22 276.5)
XYZxyz(9.9072, 4.6109, 43.5391)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3317B4 #98B417
analogous
#1749B4 #3317B4 #8217B4
triadic
#3317B4 #B43317 #17B433
tetradic
#3317B4 #B41749 #98B417 #17B482
square
#3317B4 #B41749 #98B417 #17B482
split-complementary
#3317B4 #B48217 #49B417
monochromatic
#140947 #24107E #3317B4 #4725E3 #755BEA

Accessibility & contrast

On white

10.92
#3317B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3317B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3317B4
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3317B4#FFFFFF#000000##FFFFFF
##3317B41.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3317b4;
/* rgb */ color: rgb(51, 23, 180);
/* oklch */ color: oklch(38.4% 0.220 276.5);
Tailwind
colors: {
  custom: {
    50: '#805dcc',
    500: '#3317b4',
    950: '#000000',
  },
}
SCSS
$custom: #3317b4;
$custom-light: #805dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3317b4",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 250.701,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38417,
    "c": 0.21986,
    "h": 276.5
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#3317B4
secondary
#B9CE59
accent
#F434D2
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3317B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3317B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva