#2F1167#2F1167

#2F1167 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.137 H 291.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2F1167
RGBrgb(47, 17, 103)
HSLhsl(261, 72%, 24%)
HSVhsv(261, 83%, 40%)
CMYKcmyk(54.4%, 83.5%, 0%, 59.6%)
CIE-LABlab(15.40, 35.91, -44.36)
CIE-LCHlch(15.40, 57.07, 308.99°)
OKLaboklab(28.71% 0.0489 -0.1275)
OKLCHoklch(28.71% 0.137 291)
XYZxyz(3.8202, 1.9843, 13.0111)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1167 #496711
analogous
#111E67 #2F1167 #5A1167
triadic
#2F1167 #672F11 #11672F
tetradic
#2F1167 #67111E #496711 #11675A
square
#2F1167 #67111E #496711 #11675A
split-complementary
#2F1167 #675A11 #1E6711
monochromatic
#0C041A #170832 #2F1167 #471A9C #5F22D0

Accessibility & contrast

On white

15.03
#2F1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1167
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1167#FFFFFF#000000##FFFFFF
##2F11671.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#1B2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1167;
/* rgb */ color: rgb(47, 17, 103);
/* oklch */ color: oklch(28.7% 0.137 291.0);
Tailwind
colors: {
  custom: {
    50: '#6f5393',
    500: '#2f1167',
    950: '#000000',
  },
}
SCSS
$custom: #2f1167;
$custom-light: #6f5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1167",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 260.93,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28708,
    "c": 0.13653,
    "h": 291
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#2F1167
secondary
#7A9F35
accent
#EE39AF
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1167

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

Preview Lab → · Contrast checker → · Palette generator →

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