#2F1871#2F1871

#2F1871 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.141 H 286.5°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1871
RGBrgb(47, 24, 113)
HSLhsl(256, 65%, 27%)
HSVhsv(256, 79%, 44%)
CMYKcmyk(58.4%, 78.8%, 0%, 55.7%)
CIE-LABlab(17.69, 35.38, -47.14)
CIE-LCHlch(17.69, 58.94, 306.89°)
OKLaboklab(30.62% 0.0401 -0.1357)
OKLCHoklch(30.62% 0.141 286.5)
XYZxyz(4.4787, 2.4496, 15.8564)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1871 #5A7118
analogous
#182D71 #2F1871 #5C1871
triadic
#2F1871 #712F18 #18712F
tetradic
#2F1871 #71182D #5A7118 #18715C
square
#2F1871 #71182D #5A7118 #18715C
split-complementary
#2F1871 #715C18 #2D7118
monochromatic
#0A0519 #1A0D3F #2F1871 #4423A3 #5A30D3

Accessibility & contrast

On white

14.09
#2F1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1871
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1871#FFFFFF#000000##FFFFFF
##2F18711.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#113143
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1871;
/* rgb */ color: rgb(47, 24, 113);
/* oklch */ color: oklch(30.6% 0.141 286.5);
Tailwind
colors: {
  custom: {
    50: '#70589b',
    500: '#2f1871',
    950: '#000000',
  },
}
SCSS
$custom: #2f1871;
$custom-light: #70589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1871",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 255.506,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30621,
    "c": 0.14149,
    "h": 286.5
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#2F1871
secondary
#8CA63E
accent
#E840BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1871

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

Preview Lab → · Contrast checker → · Palette generator →

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