#2F1566#2F1566

#2F1566 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.131 H 290.5°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2F1566
RGBrgb(47, 21, 102)
HSLhsl(259, 66%, 24%)
HSVhsv(259, 79%, 40%)
CMYKcmyk(53.9%, 79.4%, 0%, 60%)
CIE-LABlab(16.00, 33.60, -42.72)
CIE-LCHlch(16.00, 54.35, 308.18°)
OKLaboklab(29.1% 0.0458 -0.1227)
OKLCHoklch(29.1% 0.131 290.5)
XYZxyz(3.8380, 2.0998, 12.7709)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1566 #4C6615
analogous
#152466 #2F1566 #581566
triadic
#2F1566 #662F15 #15662F
tetradic
#2F1566 #661524 #4C6615 #156658
square
#2F1566 #661524 #4C6615 #156658
split-complementary
#2F1566 #665815 #246615
monochromatic
#0C0519 #180B33 #2F1566 #461F99 #5E2ACC

Accessibility & contrast

On white

14.79
#2F1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1566
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1566#FFFFFF#000000##FFFFFF
##2F15661.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1C2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1566;
/* rgb */ color: rgb(47, 21, 102);
/* oklch */ color: oklch(29.1% 0.131 290.5);
Tailwind
colors: {
  custom: {
    50: '#6e5592',
    500: '#2f1566',
    950: '#000000',
  },
}
SCSS
$custom: #2f1566;
$custom-light: #6e5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1566",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 259.259,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29095,
    "c": 0.13101,
    "h": 290.5
  },
  "luminance": 0.021
}

Semantic roles & 50–950 ramp

primary
#2F1566
secondary
#7D9D3A
accent
#E93FB2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1566

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

Preview Lab → · Contrast checker → · Palette generator →

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