#2F1578#2F1578

#2F1578 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.153 H 285.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2F1578
RGBrgb(47, 21, 120)
HSLhsl(256, 70%, 28%)
HSVhsv(256, 83%, 47%)
CMYKcmyk(60.8%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.90, 39.06, -51.30)
CIE-LCHlch(17.90, 64.48, 307.29°)
OKLaboklab(31% 0.0402 -0.1478)
OKLCHoklch(31% 0.153 285.2)
XYZxyz(4.8296, 2.4964, 17.9930)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1578 #5E7815
analogous
#152C78 #2F1578 #611578
triadic
#2F1578 #782F15 #15782F
tetradic
#2F1578 #78152C #5E7815 #157861
square
#2F1578 #78152C #5E7815 #157861
split-complementary
#2F1578 #786115 #2C7815
monochromatic
#0A051A #1B0C44 #2F1578 #431EAC #5B2DDA

Accessibility & contrast

On white

14.01
#2F1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1578
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1578#FFFFFF#000000##FFFFFF
##2F15781.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#053247
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1578;
/* rgb */ color: rgb(47, 21, 120);
/* oklch */ color: oklch(31.0% 0.153 285.2);
Tailwind
colors: {
  custom: {
    50: '#7257a0',
    500: '#2f1578',
    950: '#000000',
  },
}
SCSS
$custom: #2f1578;
$custom-light: #7257a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1578",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 255.758,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30995,
    "c": 0.15317,
    "h": 285.2
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#2F1578
secondary
#90AE3B
accent
#ED3BBE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1578

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

Preview Lab → · Contrast checker → · Palette generator →

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