#2F1555#2F1555

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

Color values

HEX#2F1555
RGBrgb(47, 21, 85)
HSLhsl(264, 60%, 21%)
HSVhsv(264, 75%, 33%)
CMYKcmyk(44.7%, 75.3%, 0%, 66.7%)
CIE-LABlab(14.38, 28.45, -34.02)
CIE-LCHlch(14.38, 44.34, 309.91°)
OKLaboklab(27.45% 0.05 -0.0972)
OKLCHoklch(27.45% 0.109 297.2)
XYZxyz(3.0797, 1.7965, 8.7771)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1555 #3B5515
analogous
#151B55 #2F1555 #4F1555
triadic
#2F1555 #552F15 #15552F
tetradic
#2F1555 #55151B #3B5515 #15554F
square
#2F1555 #55151B #3B5515 #15554F
split-complementary
#2F1555 #554F15 #1B5515
monochromatic
#0E0619 #140924 #2F1555 #4A2186 #652DB7

Accessibility & contrast

On white

15.45
#2F1555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1555
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1555#FFFFFF#000000##FFFFFF
##2F15551.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002557
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#252533
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1555;
/* rgb */ color: rgb(47, 21, 85);
/* oklch */ color: oklch(27.4% 0.109 297.2);
Tailwind
colors: {
  custom: {
    50: '#6c5585',
    500: '#2f1555',
    950: '#000000',
  },
}
SCSS
$custom: #2f1555;
$custom-light: #6c5585;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1555",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 264.375,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27446,
    "c": 0.10927,
    "h": 297.2
  },
  "luminance": 0.01797
}

Semantic roles & 50–950 ramp

primary
#2F1555
secondary
#6B8D39
accent
#E444A3
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1555

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

Preview Lab → · Contrast checker → · Palette generator →

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