#2F1451#2F1451

#2F1451 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.105 H 299.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1451
RGBrgb(47, 20, 81)
HSLhsl(267, 60%, 20%)
HSVhsv(267, 75%, 32%)
CMYKcmyk(42%, 75.3%, 0%, 68.2%)
CIE-LABlab(13.82, 27.84, -32.21)
CIE-LCHlch(13.82, 42.57, 310.84°)
OKLaboklab(26.93% 0.0519 -0.0918)
OKLCHoklch(26.93% 0.106 299.5)
XYZxyz(2.9073, 1.6987, 7.9577)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1451 #365114
analogous
#141851 #2F1451 #4D1451
triadic
#2F1451 #512F14 #14512F
tetradic
#2F1451 #511418 #365114 #14514D
square
#2F1451 #511418 #365114 #14514D
split-complementary
#2F1451 #514D14 #185114
monochromatic
#0E0619 #130820 #2F1451 #4B2082 #682CB3

Accessibility & contrast

On white

15.67
#2F1451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1451
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1451#FFFFFF#000000##FFFFFF
##2F14511.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#272330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1451;
/* rgb */ color: rgb(47, 20, 81);
/* oklch */ color: oklch(26.9% 0.105 299.5);
Tailwind
colors: {
  custom: {
    50: '#6b5482',
    500: '#2f1451',
    950: '#000000',
  },
}
SCSS
$custom: #2f1451;
$custom-light: #6b5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1451",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 266.557,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26934,
    "c": 0.1055,
    "h": 299.5
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#2F1451
secondary
#658938
accent
#E4449D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1451

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

Preview Lab → · Contrast checker → · Palette generator →

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