#2F1671#2F1671

#2F1671 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.144 H 286.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1671
RGBrgb(47, 22, 113)
HSLhsl(256, 67%, 26%)
HSVhsv(256, 81%, 44%)
CMYKcmyk(58.4%, 80.5%, 0%, 55.7%)
CIE-LABlab(17.32, 36.43, -47.74)
CIE-LCHlch(17.32, 60.06, 307.35°)
OKLaboklab(30.36% 0.0417 -0.1374)
OKLCHoklch(30.36% 0.144 286.9)
XYZxyz(4.4389, 2.3702, 15.8432)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1671 #587116
analogous
#162B71 #2F1671 #5D1671
triadic
#2F1671 #712F16 #16712F
tetradic
#2F1671 #71162B #587116 #16715D
square
#2F1671 #71162B #587116 #16715D
split-complementary
#2F1671 #715D16 #2B7116
monochromatic
#0B051A #1A0C3E #2F1671 #4420A4 #5A2CD6

Accessibility & contrast

On white

14.25
#2F1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1671
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1671#FFFFFF#000000##FFFFFF
##2F16711.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#113043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1671;
/* rgb */ color: rgb(47, 22, 113);
/* oklch */ color: oklch(30.4% 0.144 286.9);
Tailwind
colors: {
  custom: {
    50: '#70579b',
    500: '#2f1671',
    950: '#000000',
  },
}
SCSS
$custom: #2f1671;
$custom-light: #70579b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1671",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 256.484,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30363,
    "c": 0.14362,
    "h": 286.9
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#2F1671
secondary
#8AA73C
accent
#EA3EBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1671

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

Preview Lab → · Contrast checker → · Palette generator →

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