#2F1541#2F1541

#2F1541 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.083 H 309.0°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2F1541
RGBrgb(47, 21, 65)
HSLhsl(275, 51%, 17%)
HSVhsv(275, 68%, 25%)
CMYKcmyk(27.7%, 67.7%, 0%, 74.5%)
CIE-LABlab(12.75, 22.65, -22.84)
CIE-LCHlch(12.75, 32.17, 314.76°)
OKLaboklab(25.75% 0.0521 -0.0643)
OKLCHoklch(25.75% 0.083 309)
XYZxyz(2.3944, 1.5224, 5.1677)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1541 #274115
analogous
#191541 #2F1541 #41153D
triadic
#2F1541 #412F15 #15412F
tetradic
#2F1541 #411915 #274115 #153D41
square
#2F1541 #411915 #274115 #153D41
split-complementary
#2F1541 #3D4115 #154119
monochromatic
#110717 #110717 #2F1541 #50246F #72339E

Accessibility & contrast

On white

16.10
#2F1541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F1541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1541
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1541#FFFFFF#000000##FFFFFF
##2F15411.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052042
Deuteranopia (green-blind)
#0F2140
Tritanopia (blue-blind)
#2C1D28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1541;
/* rgb */ color: rgb(47, 21, 65);
/* oklch */ color: oklch(25.8% 0.083 309.0);
Tailwind
colors: {
  custom: {
    50: '#695476',
    500: '#2f1541',
    950: '#000000',
  },
}
SCSS
$custom: #2f1541;
$custom-light: #695476;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1541",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 275.455,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25753,
    "c": 0.08278,
    "h": 309
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#2F1541
secondary
#537939
accent
#DB4D87
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1541

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

Preview Lab → · Contrast checker → · Palette generator →

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