#2F1590#2F1590

#2F1590 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.182 H 280.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2F1590
RGBrgb(47, 21, 144)
HSLhsl(253, 75%, 32%)
HSVhsv(253, 85%, 56%)
CMYKcmyk(67.4%, 85.4%, 0%, 43.5%)
CIE-LABlab(20.65, 46.21, -61.91)
CIE-LCHlch(20.65, 77.26, 306.74°)
OKLaboklab(33.7% 0.0318 -0.1787)
OKLCHoklch(33.7% 0.182 280.1)
XYZxyz(6.4729, 3.1538, 26.6478)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1590 #769015
analogous
#153990 #2F1590 #6D1590
triadic
#2F1590 #902F15 #15902F
tetradic
#2F1590 #901539 #769015 #15906D
square
#2F1590 #901539 #769015 #15906D
split-complementary
#2F1590 #906D15 #399015
monochromatic
#0C0525 #1E0D5B #2F1590 #401DC5 #603DE3

Accessibility & contrast

On white

12.88
#2F1590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F1590 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1590
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1590#FFFFFF#000000##FFFFFF
##2F15901.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003C55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1590;
/* rgb */ color: rgb(47, 21, 144);
/* oklch */ color: oklch(33.7% 0.182 280.1);
Tailwind
colors: {
  custom: {
    50: '#7758b2',
    500: '#2f1590',
    950: '#000000',
  },
}
SCSS
$custom: #2f1590;
$custom-light: #7758b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1590",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 144
  },
  "hsl": {
    "h": 252.683,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33699,
    "c": 0.18153,
    "h": 280.1
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#2F1590
secondary
#A7C23E
accent
#F137CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1590

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

Preview Lab → · Contrast checker → · Palette generator →

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