#2F1A89#2F1A89

#2F1A89 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.169 H 280.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1A89
RGBrgb(47, 26, 137)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 54%)
CMYKcmyk(65.7%, 81%, 0%, 46.3%)
CIE-LABlab(20.63, 41.81, -57.57)
CIE-LCHlch(20.63, 71.15, 305.99°)
OKLaboklab(33.45% 0.0316 -0.1662)
OKLCHoklch(33.45% 0.169 280.8)
XYZxyz(6.0556, 3.1488, 23.9507)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A89 #74891A
analogous
#1A3D89 #2F1A89 #661A89
triadic
#2F1A89 #892F1A #1A892F
tetradic
#2F1A89 #891A3D #74891A #1A8966
square
#2F1A89 #891A3D #74891A #1A8966
split-complementary
#2F1A89 #89661A #3D891A
monochromatic
#0C0622 #1D1056 #2F1A89 #4124BC #5F42DB

Accessibility & contrast

On white

12.89
#2F1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A89
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A89#FFFFFF#000000##FFFFFF
##2F1A891.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1a89;
/* rgb */ color: rgb(47, 26, 137);
/* oklch */ color: oklch(33.5% 0.169 280.8);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#2f1a89',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a89;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a89",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 251.351,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3345,
    "c": 0.16915,
    "h": 280.8
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#2F1A89
secondary
#A5BC43
accent
#EB3DCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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