#2F1569#2F1569

#2F1569 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.135 H 289.5°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2F1569
RGBrgb(47, 21, 105)
HSLhsl(259, 67%, 25%)
HSVhsv(259, 80%, 41%)
CMYKcmyk(55.2%, 80%, 0%, 58.8%)
CIE-LABlab(16.31, 34.51, -44.20)
CIE-LCHlch(16.31, 56.07, 307.98°)
OKLaboklab(29.4% 0.0449 -0.127)
OKLCHoklch(29.4% 0.135 289.5)
XYZxyz(3.9895, 2.1604, 13.5686)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1569 #4F6915
analogous
#152569 #2F1569 #591569
triadic
#2F1569 #692F15 #15692F
tetradic
#2F1569 #691525 #4F6915 #156959
square
#2F1569 #691525 #4F6915 #156959
split-complementary
#2F1569 #695915 #256915
monochromatic
#0B051A #180B36 #2F1569 #461F9C #5D29CF

Accessibility & contrast

On white

14.66
#2F1569 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1569
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1569#FFFFFF#000000##FFFFFF
##2F15691.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6B
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#192C3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1569;
/* rgb */ color: rgb(47, 21, 105);
/* oklch */ color: oklch(29.4% 0.135 289.5);
Tailwind
colors: {
  custom: {
    50: '#6f5695',
    500: '#2f1569',
    950: '#000000',
  },
}
SCSS
$custom: #2f1569;
$custom-light: #6f5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1569",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 105
  },
  "hsl": {
    "h": 258.571,
    "s": 66.667,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29402,
    "c": 0.13476,
    "h": 289.5
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#2F1569
secondary
#80A03A
accent
#EA3EB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1569

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

Preview Lab → · Contrast checker → · Palette generator →

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