#2F1788#2F1788

#2F1788 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.171 H 281.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2F1788
RGBrgb(47, 23, 136)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 53%)
CMYKcmyk(65.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.02, 42.95, -57.95)
CIE-LCHlch(20.02, 72.13, 306.54°)
OKLaboklab(32.99% 0.0336 -0.1672)
OKLCHoklch(32.99% 0.171 281.4)
XYZxyz(5.9212, 2.9943, 23.5537)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1788 #708817
analogous
#173788 #2F1788 #671788
triadic
#2F1788 #882F17 #17882F
tetradic
#2F1788 #881737 #708817 #178867
square
#2F1788 #881737 #708817 #178867
split-complementary
#2F1788 #886717 #378817
monochromatic
#0B051F #1D0E54 #2F1788 #4120BC #5E3BDE

Accessibility & contrast

On white

13.13
#2F1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1788
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1788#FFFFFF#000000##FFFFFF
##2F17881.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1788;
/* rgb */ color: rgb(47, 23, 136);
/* oklch */ color: oklch(33.0% 0.171 281.4);
Tailwind
colors: {
  custom: {
    50: '#7559ac',
    500: '#2f1788',
    950: '#000000',
  },
}
SCSS
$custom: #2f1788;
$custom-light: #7559ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1788",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 252.743,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32994,
    "c": 0.17057,
    "h": 281.4
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#2F1788
secondary
#A1BC3F
accent
#EE3AC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1788

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

Preview Lab → · Contrast checker → · Palette generator →

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