#2F16A0#2F16A0

#2F16A0 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.199 H 277.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2F16A0
RGBrgb(47, 22, 160)
HSLhsl(251, 76%, 36%)
HSVhsv(251, 86%, 63%)
CMYKcmyk(70.6%, 86.3%, 0%, 37.3%)
CIE-LABlab(22.71, 50.46, -68.36)
CIE-LCHlch(22.71, 84.96, 306.43°)
OKLaboklab(35.67% 0.0259 -0.1974)
OKLCHoklch(35.67% 0.199 277.5)
XYZxyz(7.8023, 3.7155, 33.5569)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F16A0 #87A016
analogous
#1642A0 #2F16A0 #7416A0
triadic
#2F16A0 #A02F16 #16A02F
tetradic
#2F16A0 #A01642 #87A016 #16A074
square
#2F16A0 #A01642 #87A016 #16A074
split-complementary
#2F16A0 #A07416 #42A016
monochromatic
#0F0734 #1F0F6A #2F16A0 #3F1DD6 #664AE6

Accessibility & contrast

On white

12.05
#2F16A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F16A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F16A0
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F16A0#FFFFFF#000000##FFFFFF
##2F16A01.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f16a0;
/* rgb */ color: rgb(47, 22, 160);
/* oklch */ color: oklch(35.7% 0.199 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2f16a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f16a0;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f16a0",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 160
  },
  "hsl": {
    "h": 250.87,
    "s": 75.824,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35665,
    "c": 0.19913,
    "h": 277.5
  },
  "luminance": 0.03716
}

Semantic roles & 50–950 ramp

primary
#2F16A0
secondary
#B1C84A
accent
#F235D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F16A0

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

Preview Lab → · Contrast checker → · Palette generator →

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