#2F1589#2F1589

#2F1589 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.173 H 281.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1589
RGBrgb(47, 21, 137)
HSLhsl(253, 73%, 31%)
HSVhsv(253, 85%, 54%)
CMYKcmyk(65.7%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.83, 44.15, -58.90)
CIE-LCHlch(19.83, 73.61, 306.85°)
OKLaboklab(32.9% 0.0343 -0.17)
OKLCHoklch(32.9% 0.173 281.4)
XYZxyz(5.9544, 2.9464, 23.9170)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1589 #6F8915
analogous
#153589 #2F1589 #691589
triadic
#2F1589 #892F15 #15892F
tetradic
#2F1589 #891535 #6F8915 #158969
square
#2F1589 #891535 #6F8915 #158969
split-complementary
#2F1589 #896915 #358915
monochromatic
#0B051F #1D0D54 #2F1589 #411DBE #5E38E0

Accessibility & contrast

On white

13.21
#2F1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1589
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1589#FFFFFF#000000##FFFFFF
##2F15891.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1589;
/* rgb */ color: rgb(47, 21, 137);
/* oklch */ color: oklch(32.9% 0.173 281.4);
Tailwind
colors: {
  custom: {
    50: '#7558ad',
    500: '#2f1589',
    950: '#000000',
  },
}
SCSS
$custom: #2f1589;
$custom-light: #7558ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1589",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 253.448,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32895,
    "c": 0.17338,
    "h": 281.4
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#2F1589
secondary
#A0BD3D
accent
#F038C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2F1589

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

Preview Lab → · Contrast checker → · Palette generator →

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