#2F1574#2F1574

#2F1574 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.148 H 286.2°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2F1574
RGBrgb(47, 21, 116)
HSLhsl(256, 69%, 27%)
HSVhsv(256, 82%, 45%)
CMYKcmyk(59.5%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.47, 37.85, -49.44)
CIE-LCHlch(17.47, 62.27, 307.44°)
OKLaboklab(30.56% 0.0415 -0.1424)
OKLCHoklch(30.56% 0.148 286.2)
XYZxyz(4.5919, 2.4014, 16.7412)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1574 #5A7415
analogous
#152B74 #2F1574 #5F1574
triadic
#2F1574 #742F15 #15742F
tetradic
#2F1574 #74152B #5A7415 #15745F
square
#2F1574 #74152B #5A7415 #15745F
split-complementary
#2F1574 #745F15 #2B7415
monochromatic
#0A051A #1A0C40 #2F1574 #441EA8 #5A2BD9

Accessibility & contrast

On white

14.19
#2F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1574
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1574#FFFFFF#000000##FFFFFF
##2F15741.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1574;
/* rgb */ color: rgb(47, 21, 116);
/* oklch */ color: oklch(30.6% 0.148 286.2);
Tailwind
colors: {
  custom: {
    50: '#71569d',
    500: '#2f1574',
    950: '#000000',
  },
}
SCSS
$custom: #2f1574;
$custom-light: #71569d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1574",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 256.421,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30561,
    "c": 0.14831,
    "h": 286.2
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#2F1574
secondary
#8CAA3B
accent
#EC3CBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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