#2F1474#2F1474

#2F1474 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.149 H 286.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1474
RGBrgb(47, 20, 116)
HSLhsl(257, 71%, 27%)
HSVhsv(257, 83%, 45%)
CMYKcmyk(59.5%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.30, 38.34, -49.72)
CIE-LCHlch(17.30, 62.79, 307.64°)
OKLaboklab(30.44% 0.0422 -0.1432)
OKLCHoklch(30.44% 0.149 286.4)
XYZxyz(4.5739, 2.3653, 16.7352)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1474 #597414
analogous
#142974 #2F1474 #5F1474
triadic
#2F1474 #742F14 #14742F
tetradic
#2F1474 #741429 #597414 #14745F
square
#2F1474 #741429 #597414 #14745F
split-complementary
#2F1474 #745F14 #297414
monochromatic
#0B051A #1A0B40 #2F1474 #441DA8 #5A28DA

Accessibility & contrast

On white

14.25
#2F1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1474
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1474#FFFFFF#000000##FFFFFF
##2F14741.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#0D3044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1474;
/* rgb */ color: rgb(47, 20, 116);
/* oklch */ color: oklch(30.4% 0.149 286.4);
Tailwind
colors: {
  custom: {
    50: '#71569d',
    500: '#2f1474',
    950: '#000000',
  },
}
SCSS
$custom: #2f1474;
$custom-light: #71569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1474",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 256.875,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30444,
    "c": 0.14927,
    "h": 286.4
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#2F1474
secondary
#8BAA3A
accent
#ED3ABB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1474

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

Preview Lab → · Contrast checker → · Palette generator →

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