#2F16A1#2F16A1

#2F16A1 is a dark, highly saturated violet. Relative luminance 0.038; OKLCH L 35.8% C 0.200 H 277.3°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2F16A1
RGBrgb(47, 22, 161)
HSLhsl(251, 76%, 36%)
HSVhsv(251, 86%, 63%)
CMYKcmyk(70.8%, 86.3%, 0%, 36.9%)
CIE-LABlab(22.83, 50.75, -68.77)
CIE-LCHlch(22.83, 85.46, 306.43°)
OKLaboklab(35.78% 0.0255 -0.1986)
OKLCHoklch(35.78% 0.2 277.3)
XYZxyz(7.8901, 3.7506, 34.0194)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F16A1 #88A116
analogous
#1643A1 #2F16A1 #7416A1
triadic
#2F16A1 #A12F16 #16A12F
tetradic
#2F16A1 #A11643 #88A116 #16A174
square
#2F16A1 #A11643 #88A116 #16A174
split-complementary
#2F16A1 #A17416 #43A116
monochromatic
#100735 #1F0F6B #2F16A1 #3F1DD7 #674BE6

Accessibility & contrast

On white

12.00
#2F16A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F16A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F16A1
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F16A1#FFFFFF#000000##FFFFFF
##2F16A11.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f16a1;
/* rgb */ color: rgb(47, 22, 161);
/* oklch */ color: oklch(35.8% 0.200 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2f16a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f16a1;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f16a1",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 161
  },
  "hsl": {
    "h": 250.791,
    "s": 75.956,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35783,
    "c": 0.20027,
    "h": 277.3
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#2F16A1
secondary
#B1C84B
accent
#F335D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F16A1

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

Preview Lab → · Contrast checker → · Palette generator →

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