#2F1567#2F1567

#2F1567 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.132 H 290.1°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1567
RGBrgb(47, 21, 103)
HSLhsl(259, 66%, 24%)
HSVhsv(259, 80%, 40%)
CMYKcmyk(54.4%, 79.6%, 0%, 59.6%)
CIE-LABlab(16.10, 33.90, -43.22)
CIE-LCHlch(16.10, 54.92, 308.11°)
OKLaboklab(29.2% 0.0455 -0.1242)
OKLCHoklch(29.2% 0.132 290.1)
XYZxyz(3.8879, 2.1198, 13.0336)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1567 #4D6715
analogous
#152467 #2F1567 #581567
triadic
#2F1567 #672F15 #15672F
tetradic
#2F1567 #671524 #4D6715 #156758
square
#2F1567 #671524 #4D6715 #156758
split-complementary
#2F1567 #675815 #246715
monochromatic
#0C0519 #180B34 #2F1567 #461F9A #5D2ACD

Accessibility & contrast

On white

14.75
#2F1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1567 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1567
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1567#FFFFFF#000000##FFFFFF
##2F15671.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#1B2C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1567;
/* rgb */ color: rgb(47, 21, 103);
/* oklch */ color: oklch(29.2% 0.132 290.1);
Tailwind
colors: {
  custom: {
    50: '#6f5593',
    500: '#2f1567',
    950: '#000000',
  },
}
SCSS
$custom: #2f1567;
$custom-light: #6f5593;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1567",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 259.024,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29196,
    "c": 0.13226,
    "h": 290.1
  },
  "luminance": 0.0212
}

Semantic roles & 50–950 ramp

primary
#2F1567
secondary
#7E9E3A
accent
#E93FB3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1567

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

Preview Lab → · Contrast checker → · Palette generator →

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