#2F1546#2F1546

#2F1546 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.089 H 305.5°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1546
RGBrgb(47, 21, 70)
HSLhsl(272, 54%, 18%)
HSVhsv(272, 70%, 27%)
CMYKcmyk(32.9%, 70%, 0%, 72.5%)
CIE-LABlab(13.13, 24.06, -25.74)
CIE-LCHlch(13.13, 35.23, 313.06°)
OKLaboklab(26.15% 0.0519 -0.0728)
OKLCHoklch(26.15% 0.089 305.5)
XYZxyz(2.5457, 1.5829, 5.9646)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1546 #2C4615
analogous
#171546 #2F1546 #461544
triadic
#2F1546 #462F15 #15462F
tetradic
#2F1546 #461715 #2C4615 #154446
square
#2F1546 #461715 #2C4615 #154446
split-complementary
#2F1546 #444615 #154617
monochromatic
#100718 #100718 #2F1546 #4F2375 #6E31A4

Accessibility & contrast

On white

15.95
#2F1546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1546
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1546#FFFFFF#000000##FFFFFF
##2F15461.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#2B1F2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1546;
/* rgb */ color: rgb(47, 21, 70);
/* oklch */ color: oklch(26.1% 0.089 305.5);
Tailwind
colors: {
  custom: {
    50: '#6a547a',
    500: '#2f1546',
    950: '#000000',
  },
}
SCSS
$custom: #2f1546;
$custom-light: #6a547a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1546",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 271.837,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26147,
    "c": 0.08945,
    "h": 305.5
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#2F1546
secondary
#597E39
accent
#DD4B8F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1546

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

Preview Lab → · Contrast checker → · Palette generator →

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