#2F1568#2F1568

#2F1568 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.134 H 289.8°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1568
RGBrgb(47, 21, 104)
HSLhsl(259, 66%, 25%)
HSVhsv(259, 80%, 41%)
CMYKcmyk(54.8%, 79.8%, 0%, 59.2%)
CIE-LABlab(16.21, 34.20, -43.71)
CIE-LCHlch(16.21, 55.50, 308.05°)
OKLaboklab(29.3% 0.0453 -0.1256)
OKLCHoklch(29.3% 0.134 289.8)
XYZxyz(3.9384, 2.1400, 13.2996)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1568 #4E6815
analogous
#152568 #2F1568 #591568
triadic
#2F1568 #682F15 #15682F
tetradic
#2F1568 #681525 #4E6815 #156859
square
#2F1568 #681525 #4E6815 #156859
split-complementary
#2F1568 #685915 #256815
monochromatic
#0C0519 #180B35 #2F1568 #461F9B #5D2ACE

Accessibility & contrast

On white

14.71
#2F1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1568
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1568#FFFFFF#000000##FFFFFF
##2F15681.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#1A2C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1568;
/* rgb */ color: rgb(47, 21, 104);
/* oklch */ color: oklch(29.3% 0.134 289.8);
Tailwind
colors: {
  custom: {
    50: '#6f5694',
    500: '#2f1568',
    950: '#000000',
  },
}
SCSS
$custom: #2f1568;
$custom-light: #6f5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1568",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 258.795,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29299,
    "c": 0.13351,
    "h": 289.8
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#2F1568
secondary
#7F9F3A
accent
#E93EB4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1568

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

Preview Lab → · Contrast checker → · Palette generator →

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