#2F1372#2F1372

#2F1372 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.148 H 287.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2F1372
RGBrgb(47, 19, 114)
HSLhsl(258, 71%, 26%)
HSVhsv(258, 83%, 45%)
CMYKcmyk(58.8%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.92, 38.22, -49.06)
CIE-LCHlch(16.92, 62.19, 307.92°)
OKLaboklab(30.11% 0.0436 -0.1412)
OKLCHoklch(30.11% 0.148 287.1)
XYZxyz(4.4415, 2.2847, 16.1233)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1372 #567213
analogous
#132672 #2F1372 #5E1372
triadic
#2F1372 #722F13 #13722F
tetradic
#2F1372 #721326 #567213 #13725E
square
#2F1372 #721326 #567213 #13725E
split-complementary
#2F1372 #725E13 #267213
monochromatic
#0B041A #190A3E #2F1372 #451CA6 #5A25DB

Accessibility & contrast

On white

14.41
#2F1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1372
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1372#FFFFFF#000000##FFFFFF
##2F13721.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#102F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1372;
/* rgb */ color: rgb(47, 19, 114);
/* oklch */ color: oklch(30.1% 0.148 287.1);
Tailwind
colors: {
  custom: {
    50: '#71559c',
    500: '#2f1372',
    950: '#000000',
  },
}
SCSS
$custom: #2f1372;
$custom-light: #71559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1372",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 257.684,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30113,
    "c": 0.1478,
    "h": 287.1
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#2F1372
secondary
#87A938
accent
#EE3AB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1372

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

Preview Lab → · Contrast checker → · Palette generator →

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