#2F1071#2F1071

#2F1071 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.149 H 287.9°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2F1071
RGBrgb(47, 16, 113)
HSLhsl(259, 75%, 25%)
HSVhsv(259, 86%, 44%)
CMYKcmyk(58.4%, 85.8%, 0%, 55.7%)
CIE-LABlab(16.34, 39.28, -49.36)
CIE-LCHlch(16.34, 63.08, 308.51°)
OKLaboklab(29.68% 0.0459 -0.1421)
OKLCHoklch(29.68% 0.149 287.9)
XYZxyz(4.3373, 2.1669, 15.8093)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1071 #527110
analogous
#102271 #2F1071 #5F1071
triadic
#2F1071 #712F10 #10712F
tetradic
#2F1071 #711022 #527110 #10715F
square
#2F1071 #711022 #527110 #10715F
split-complementary
#2F1071 #715F10 #227110
monochromatic
#0B041B #19083B #2F1071 #4518A7 #5C1FDC

Accessibility & contrast

On white

14.65
#2F1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1071
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1071#FFFFFF#000000##FFFFFF
##2F10711.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#112E42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1071;
/* rgb */ color: rgb(47, 16, 113);
/* oklch */ color: oklch(29.7% 0.149 287.9);
Tailwind
colors: {
  custom: {
    50: '#71549b',
    500: '#2f1071',
    950: '#000000',
  },
}
SCSS
$custom: #2f1071;
$custom-light: #71549b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1071",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 259.175,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29683,
    "c": 0.14932,
    "h": 287.9
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#2F1071
secondary
#83A934
accent
#F236B6
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1071

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

Preview Lab → · Contrast checker → · Palette generator →

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