#2F1446#2F1446

#2F1446 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.091 H 305.8°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2F1446
RGBrgb(47, 20, 70)
HSLhsl(272, 56%, 18%)
HSVhsv(272, 71%, 27%)
CMYKcmyk(32.9%, 71.4%, 0%, 72.5%)
CIE-LABlab(12.90, 24.66, -26.10)
CIE-LCHlch(12.90, 35.91, 313.38°)
OKLaboklab(25.99% 0.0533 -0.0739)
OKLCHoklch(25.99% 0.091 305.8)
XYZxyz(2.5277, 1.5469, 5.9586)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1446 #2B4614
analogous
#161446 #2F1446 #461444
triadic
#2F1446 #462F14 #14462F
tetradic
#2F1446 #461614 #2B4614 #144446
square
#2F1446 #461614 #2B4614 #144446
split-complementary
#2F1446 #444614 #144616
monochromatic
#100718 #100718 #2F1446 #4F2276 #6F2FA5

Accessibility & contrast

On white

16.04
#2F1446 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1446 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1446
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1446#FFFFFF#000000##FFFFFF
##2F14461.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#082145
Tritanopia (blue-blind)
#2B1E2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1446;
/* rgb */ color: rgb(47, 20, 70);
/* oklch */ color: oklch(26.0% 0.091 305.8);
Tailwind
colors: {
  custom: {
    50: '#6a537a',
    500: '#2f1446',
    950: '#000000',
  },
}
SCSS
$custom: #2f1446;
$custom-light: #6a537a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1446",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 70
  },
  "hsl": {
    "h": 272.4,
    "s": 55.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25986,
    "c": 0.09113,
    "h": 305.8
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#2F1446
secondary
#587E38
accent
#DF498E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1446

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

Preview Lab → · Contrast checker → · Palette generator →

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