#2F15A0#2F15A0

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

Color values

HEX#2F15A0
RGBrgb(47, 21, 160)
HSLhsl(251, 77%, 35%)
HSVhsv(251, 87%, 63%)
CMYKcmyk(70.6%, 86.9%, 0%, 37.3%)
CIE-LABlab(22.58, 50.85, -68.57)
CIE-LCHlch(22.58, 85.37, 306.56°)
OKLaboklab(35.58% 0.0262 -0.198)
OKLCHoklch(35.58% 0.2 277.5)
XYZxyz(7.7836, 3.6780, 33.5506)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F15A0 #86A015
analogous
#1540A0 #2F15A0 #7415A0
triadic
#2F15A0 #A02F15 #15A02F
tetradic
#2F15A0 #A01540 #86A015 #15A074
square
#2F15A0 #A01540 #86A015 #15A074
split-complementary
#2F15A0 #A07415 #40A015
monochromatic
#0F0734 #1F0E6A #2F15A0 #3F1CD6 #6648E7

Accessibility & contrast

On white

12.10
#2F15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F15A0
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F15A0#FFFFFF#000000##FFFFFF
##2F15A01.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f15a0;
/* rgb */ color: rgb(47, 21, 160);
/* oklch */ color: oklch(35.6% 0.200 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a5abe',
    500: '#2f15a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f15a0;
$custom-light: #7a5abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f15a0",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 251.223,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35576,
    "c": 0.19978,
    "h": 277.5
  },
  "luminance": 0.03679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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