#2F1473#2F1473

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

Color values

HEX#2F1473
RGBrgb(47, 20, 115)
HSLhsl(257, 70%, 26%)
HSVhsv(257, 83%, 45%)
CMYKcmyk(59.1%, 82.6%, 0%, 54.9%)
CIE-LABlab(17.19, 38.04, -49.26)
CIE-LCHlch(17.19, 62.23, 307.68°)
OKLaboklab(30.34% 0.0425 -0.1418)
OKLCHoklch(30.34% 0.148 286.7)
XYZxyz(4.5160, 2.3422, 16.4305)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1473 #587314
analogous
#142973 #2F1473 #5F1473
triadic
#2F1473 #732F14 #14732F
tetradic
#2F1473 #731429 #587314 #14735F
square
#2F1473 #731429 #587314 #14735F
split-complementary
#2F1473 #735F14 #297314
monochromatic
#0B051A #1A0B3F #2F1473 #441DA7 #5A28DA

Accessibility & contrast

On white

14.30
#2F1473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1473 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1473
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1473#FFFFFF#000000##FFFFFF
##2F14731.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#0E3044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1473;
/* rgb */ color: rgb(47, 20, 115);
/* oklch */ color: oklch(30.3% 0.148 286.7);
Tailwind
colors: {
  custom: {
    50: '#71569c',
    500: '#2f1473',
    950: '#000000',
  },
}
SCSS
$custom: #2f1473;
$custom-light: #71569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1473",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 257.053,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30336,
    "c": 0.14807,
    "h": 286.7
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#2F1473
secondary
#8AA93A
accent
#ED3BBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1473

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

Preview Lab → · Contrast checker → · Palette generator →

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