#2F1972#2F1972

#2F1972 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.142 H 286.0°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2F1972
RGBrgb(47, 25, 114)
HSLhsl(255, 64%, 27%)
HSVhsv(255, 78%, 45%)
CMYKcmyk(58.8%, 78.1%, 0%, 55.3%)
CIE-LABlab(17.98, 35.16, -47.30)
CIE-LCHlch(17.98, 58.94, 306.62°)
OKLaboklab(30.86% 0.039 -0.1362)
OKLCHoklch(30.86% 0.142 286)
XYZxyz(4.5563, 2.5142, 16.1615)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1972 #5C7219
analogous
#193072 #2F1972 #5B1972
triadic
#2F1972 #722F19 #19722F
tetradic
#2F1972 #721930 #5C7219 #19725B
square
#2F1972 #721930 #5C7219 #19725B
split-complementary
#2F1972 #725B19 #307219
monochromatic
#0A0619 #1A0E40 #2F1972 #4424A4 #5A33D2

Accessibility & contrast

On white

13.97
#2F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1972
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1972#FFFFFF#000000##FFFFFF
##2F19721.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#0F3244
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1972;
/* rgb */ color: rgb(47, 25, 114);
/* oklch */ color: oklch(30.9% 0.142 286.0);
Tailwind
colors: {
  custom: {
    50: '#70589b',
    500: '#2f1972',
    950: '#000000',
  },
}
SCSS
$custom: #2f1972;
$custom-light: #70589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1972",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 254.831,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30859,
    "c": 0.14166,
    "h": 286
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#2F1972
secondary
#8EA740
accent
#E741BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1972

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

Preview Lab → · Contrast checker → · Palette generator →

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