#2F15A1#2F15A1

#2F15A1 is a dark, highly saturated violet. Relative luminance 0.037; OKLCH L 35.7% C 0.201 H 277.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2F15A1
RGBrgb(47, 21, 161)
HSLhsl(251, 77%, 36%)
HSVhsv(251, 87%, 63%)
CMYKcmyk(70.8%, 87%, 0%, 36.9%)
CIE-LABlab(22.70, 51.13, -68.98)
CIE-LCHlch(22.70, 85.87, 306.55°)
OKLaboklab(35.69% 0.0259 -0.1992)
OKLCHoklch(35.69% 0.201 277.4)
XYZxyz(7.8714, 3.7132, 34.0132)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F15A1 #87A115
analogous
#1541A1 #2F15A1 #7515A1
triadic
#2F15A1 #A12F15 #15A12F
tetradic
#2F15A1 #A11541 #87A115 #15A175
square
#2F15A1 #A11541 #87A115 #15A175
split-complementary
#2F15A1 #A17515 #41A115
monochromatic
#0F0735 #1F0E6B #2F15A1 #3F1CD7 #6649E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F15A1#FFFFFF#000000##FFFFFF
##2F15A11.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)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f15a1;
/* rgb */ color: rgb(47, 21, 161);
/* oklch */ color: oklch(35.7% 0.201 277.4);
Tailwind
colors: {
  custom: {
    50: '#7b5abe',
    500: '#2f15a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f15a1;
$custom-light: #7b5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f15a1",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 251.143,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35694,
    "c": 0.2009,
    "h": 277.4
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#2F15A1
secondary
#B1C849
accent
#F334D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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