#2F1373#2F1373

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

Color values

HEX#2F1373
RGBrgb(47, 19, 115)
HSLhsl(258, 72%, 26%)
HSVhsv(258, 83%, 45%)
CMYKcmyk(59.1%, 83.5%, 0%, 54.9%)
CIE-LABlab(17.03, 38.51, -49.53)
CIE-LCHlch(17.03, 62.74, 307.87°)
OKLaboklab(30.22% 0.0432 -0.1426)
OKLCHoklch(30.22% 0.149 286.9)
XYZxyz(4.4987, 2.3076, 16.4247)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1373 #577313
analogous
#132773 #2F1373 #5F1373
triadic
#2F1373 #732F13 #13732F
tetradic
#2F1373 #731327 #577313 #13735F
square
#2F1373 #731327 #577313 #13735F
split-complementary
#2F1373 #735F13 #277313
monochromatic
#0B041A #1A0A3E #2F1373 #441CA8 #5A25DB

Accessibility & contrast

On white

14.37
#2F1373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1373
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1373#FFFFFF#000000##FFFFFF
##2F13731.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#0E3043
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1373;
/* rgb */ color: rgb(47, 19, 115);
/* oklch */ color: oklch(30.2% 0.149 286.9);
Tailwind
colors: {
  custom: {
    50: '#71559c',
    500: '#2f1373',
    950: '#000000',
  },
}
SCSS
$custom: #2f1373;
$custom-light: #71559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1373",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 257.5,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30222,
    "c": 0.14901,
    "h": 286.9
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#2F1373
secondary
#88AA38
accent
#EE39BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1373

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

Preview Lab → · Contrast checker → · Palette generator →

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