#2F1575#2F1575

#2F1575 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.150 H 286.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#2F1575
RGBrgb(47, 21, 117)
HSLhsl(256, 70%, 27%)
HSVhsv(256, 82%, 46%)
CMYKcmyk(59.8%, 82.1%, 0%, 54.1%)
CIE-LABlab(17.57, 38.16, -49.91)
CIE-LCHlch(17.57, 62.83, 307.40°)
OKLaboklab(30.67% 0.0412 -0.1437)
OKLCHoklch(30.67% 0.15 286)
XYZxyz(4.6504, 2.4247, 17.0492)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1575 #5B7515
analogous
#152B75 #2F1575 #5F1575
triadic
#2F1575 #752F15 #15752F
tetradic
#2F1575 #75152B #5B7515 #15755F
square
#2F1575 #75152B #5B7515 #15755F
split-complementary
#2F1575 #755F15 #2B7515
monochromatic
#0A051A #1A0C41 #2F1575 #441EA9 #5A2BD9

Accessibility & contrast

On white

14.14
#2F1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1575
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1575#FFFFFF#000000##FFFFFF
##2F15751.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#0B3145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1575;
/* rgb */ color: rgb(47, 21, 117);
/* oklch */ color: oklch(30.7% 0.150 286.0);
Tailwind
colors: {
  custom: {
    50: '#71569e',
    500: '#2f1575',
    950: '#000000',
  },
}
SCSS
$custom: #2f1575;
$custom-light: #71569e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1575",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 256.25,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30669,
    "c": 0.14952,
    "h": 286
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#2F1575
secondary
#8DAB3B
accent
#EC3BBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2F1575

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

Preview Lab → · Contrast checker → · Palette generator →

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