#2F1554#2F1554

#2F1554 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.108 H 297.7°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2F1554
RGBrgb(47, 21, 84)
HSLhsl(265, 60%, 21%)
HSVhsv(265, 75%, 33%)
CMYKcmyk(44%, 75%, 0%, 67.1%)
CIE-LABlab(14.29, 28.15, -33.48)
CIE-LCHlch(14.29, 43.74, 310.06°)
OKLaboklab(27.35% 0.0502 -0.0956)
OKLCHoklch(27.35% 0.108 297.7)
XYZxyz(3.0403, 1.7807, 8.5693)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1554 #3A5415
analogous
#151A54 #2F1554 #4E1554
triadic
#2F1554 #542F15 #15542F
tetradic
#2F1554 #54151A #3A5415 #15544E
square
#2F1554 #54151A #3A5415 #15544E
split-complementary
#2F1554 #544E15 #1A5415
monochromatic
#0E0618 #140923 #2F1554 #4A2185 #662DB6

Accessibility & contrast

On white

15.48
#2F1554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1554
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1554#FFFFFF#000000##FFFFFF
##2F15541.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#262432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1554;
/* rgb */ color: rgb(47, 21, 84);
/* oklch */ color: oklch(27.4% 0.108 297.7);
Tailwind
colors: {
  custom: {
    50: '#6b5485',
    500: '#2f1554',
    950: '#000000',
  },
}
SCSS
$custom: #2f1554;
$custom-light: #6b5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1554",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 264.762,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27354,
    "c": 0.10796,
    "h": 297.7
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#2F1554
secondary
#6A8C39
accent
#E345A2
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1554

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

Preview Lab → · Contrast checker → · Palette generator →

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