#2F1577#2F1577

#2F1577 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.152 H 285.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2F1577
RGBrgb(47, 21, 119)
HSLhsl(256, 70%, 27%)
HSVhsv(256, 82%, 47%)
CMYKcmyk(60.5%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.79, 38.76, -50.84)
CIE-LCHlch(17.79, 63.93, 307.32°)
OKLaboklab(30.89% 0.0405 -0.1465)
OKLCHoklch(30.89% 0.152 285.5)
XYZxyz(4.7692, 2.4723, 17.6751)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1577 #5D7715
analogous
#152C77 #2F1577 #601577
triadic
#2F1577 #772F15 #15772F
tetradic
#2F1577 #77152C #5D7715 #157760
square
#2F1577 #77152C #5D7715 #157760
split-complementary
#2F1577 #776015 #2C7715
monochromatic
#0A051A #1A0C43 #2F1577 #441EAB #5B2DDA

Accessibility & contrast

On white

14.05
#2F1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1577
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1577#FFFFFF#000000##FFFFFF
##2F15771.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#073246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1577;
/* rgb */ color: rgb(47, 21, 119);
/* oklch */ color: oklch(30.9% 0.152 285.5);
Tailwind
colors: {
  custom: {
    50: '#72579f',
    500: '#2f1577',
    950: '#000000',
  },
}
SCSS
$custom: #2f1577;
$custom-light: #72579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1577",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 255.918,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30886,
    "c": 0.15195,
    "h": 285.5
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#2F1577
secondary
#8FAD3B
accent
#ED3BBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2F1577

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

Preview Lab → · Contrast checker → · Palette generator →

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