#2F1452#2F1452

#2F1452 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.107 H 299.0°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2F1452
RGBrgb(47, 20, 82)
HSLhsl(266, 61%, 20%)
HSVhsv(266, 76%, 32%)
CMYKcmyk(42.7%, 75.6%, 0%, 67.8%)
CIE-LABlab(13.91, 28.13, -32.75)
CIE-LCHlch(13.91, 43.17, 310.67°)
OKLaboklab(27.02% 0.0517 -0.0934)
OKLCHoklch(27.02% 0.107 299)
XYZxyz(2.9451, 1.7138, 8.1566)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1452 #375214
analogous
#141852 #2F1452 #4E1452
triadic
#2F1452 #522F14 #14522F
tetradic
#2F1452 #521418 #375214 #14524E
square
#2F1452 #521418 #375214 #14524E
split-complementary
#2F1452 #524E14 #185214
monochromatic
#0E0619 #130821 #2F1452 #4B2083 #672CB4

Accessibility & contrast

On white

15.64
#2F1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1452
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1452#FFFFFF#000000##FFFFFF
##2F14521.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#272331
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1452;
/* rgb */ color: rgb(47, 20, 82);
/* oklch */ color: oklch(27.0% 0.107 299.0);
Tailwind
colors: {
  custom: {
    50: '#6b5483',
    500: '#2f1452',
    950: '#000000',
  },
}
SCSS
$custom: #2f1452;
$custom-light: #6b5483;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1452",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 266.129,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.27024,
    "c": 0.10679,
    "h": 299
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#2F1452
secondary
#668A38
accent
#E4449E
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1452

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

Preview Lab → · Contrast checker → · Palette generator →

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