#2F1472#2F1472

#2F1472 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.147 H 287.0°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1472
RGBrgb(47, 20, 114)
HSLhsl(257, 70%, 26%)
HSVhsv(257, 82%, 45%)
CMYKcmyk(58.8%, 82.5%, 0%, 55.3%)
CIE-LABlab(17.08, 37.74, -48.79)
CIE-LCHlch(17.08, 61.68, 307.72°)
OKLaboklab(30.23% 0.0429 -0.1405)
OKLCHoklch(30.23% 0.147 287)
XYZxyz(4.4588, 2.3193, 16.1290)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1472 #577214
analogous
#142872 #2F1472 #5E1472
triadic
#2F1472 #722F14 #14722F
tetradic
#2F1472 #721428 #577214 #14725E
square
#2F1472 #721428 #577214 #14725E
split-complementary
#2F1472 #725E14 #287214
monochromatic
#0B051A #1A0B3E #2F1472 #441DA6 #5A27D9

Accessibility & contrast

On white

14.34
#2F1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1472
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1472#FFFFFF#000000##FFFFFF
##2F14721.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1472;
/* rgb */ color: rgb(47, 20, 114);
/* oklch */ color: oklch(30.2% 0.147 287.0);
Tailwind
colors: {
  custom: {
    50: '#71569c',
    500: '#2f1472',
    950: '#000000',
  },
}
SCSS
$custom: #2f1472;
$custom-light: #71569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1472",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 257.234,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30228,
    "c": 0.14685,
    "h": 287
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#2F1472
secondary
#88A839
accent
#ED3BBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1472

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

Preview Lab → · Contrast checker → · Palette generator →

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