#2F17A1#2F17A1

#2F17A1 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.200 H 277.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2F17A1
RGBrgb(47, 23, 161)
HSLhsl(250, 75%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(70.8%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.96, 50.35, -68.54)
CIE-LCHlch(22.96, 85.05, 306.30°)
OKLaboklab(35.88% 0.0252 -0.198)
OKLCHoklch(35.88% 0.2 277.3)
XYZxyz(7.9096, 3.7896, 34.0259)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F17A1 #89A117
analogous
#1744A1 #2F17A1 #7417A1
triadic
#2F17A1 #A12F17 #17A12F
tetradic
#2F17A1 #A11744 #89A117 #17A174
square
#2F17A1 #A11744 #89A117 #17A174
split-complementary
#2F17A1 #A17417 #44A117
monochromatic
#100836 #1F0F6B #2F17A1 #3F1FD7 #674DE6

Accessibility & contrast

On white

11.95
#2F17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F17A1
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F17A1#FFFFFF#000000##FFFFFF
##2F17A11.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f17a1;
/* rgb */ color: rgb(47, 23, 161);
/* oklch */ color: oklch(35.9% 0.200 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2f17a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f17a1;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f17a1",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 250.435,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.1996,
    "h": 277.3
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#2F17A1
secondary
#B2C74C
accent
#F236D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F17A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2F17A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva