#2F1545#2F1545

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

Color values

HEX#2F1545
RGBrgb(47, 21, 69)
HSLhsl(273, 53%, 18%)
HSVhsv(273, 70%, 27%)
CMYKcmyk(31.9%, 69.6%, 0%, 72.9%)
CIE-LABlab(13.05, 23.77, -25.17)
CIE-LCHlch(13.05, 34.62, 313.37°)
OKLaboklab(26.07% 0.052 -0.0712)
OKLCHoklch(26.07% 0.088 306.1)
XYZxyz(2.5144, 1.5704, 5.7997)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1545 #2B4515
analogous
#171545 #2F1545 #451543
triadic
#2F1545 #452F15 #15452F
tetradic
#2F1545 #451715 #2B4515 #154345
square
#2F1545 #451715 #2B4515 #154345
split-complementary
#2F1545 #434515 #154517
monochromatic
#100717 #100717 #2F1545 #4F2374 #6F32A3

Accessibility & contrast

On white

15.98
#2F1545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1545
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1545#FFFFFF#000000##FFFFFF
##2F15451.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002147
Deuteranopia (green-blind)
#0B2244
Tritanopia (blue-blind)
#2B1F2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1545;
/* rgb */ color: rgb(47, 21, 69);
/* oklch */ color: oklch(26.1% 0.088 306.1);
Tailwind
colors: {
  custom: {
    50: '#6a5479',
    500: '#2f1545',
    950: '#000000',
  },
}
SCSS
$custom: #2f1545;
$custom-light: #6a5479;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1545",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 272.5,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26066,
    "c": 0.08812,
    "h": 306.1
  },
  "luminance": 0.0157
}

Semantic roles & 50–950 ramp

primary
#2F1545
secondary
#587D39
accent
#DD4B8E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2F1545

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

Preview Lab → · Contrast checker → · Palette generator →

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