#2F1971#2F1971

#2F1971 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.140 H 286.3°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2F1971
RGBrgb(47, 25, 113)
HSLhsl(255, 64%, 27%)
HSVhsv(255, 78%, 44%)
CMYKcmyk(58.4%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.88, 34.84, -46.82)
CIE-LCHlch(17.88, 58.36, 306.65°)
OKLaboklab(30.76% 0.0393 -0.1348)
OKLCHoklch(30.76% 0.14 286.3)
XYZxyz(4.4997, 2.4916, 15.8634)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1971 #5B7119
analogous
#192F71 #2F1971 #5B1971
triadic
#2F1971 #712F19 #19712F
tetradic
#2F1971 #71192F #5B7119 #19715B
square
#2F1971 #71192F #5B7119 #19715B
split-complementary
#2F1971 #715B19 #2F7119
monochromatic
#0A0619 #1A0E3F #2F1971 #4424A3 #5A33D2

Accessibility & contrast

On white

14.01
#2F1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1971
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1971#FFFFFF#000000##FFFFFF
##2F19711.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1971;
/* rgb */ color: rgb(47, 25, 113);
/* oklch */ color: oklch(30.8% 0.140 286.3);
Tailwind
colors: {
  custom: {
    50: '#70589b',
    500: '#2f1971',
    950: '#000000',
  },
}
SCSS
$custom: #2f1971;
$custom-light: #70589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1971",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 255,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30756,
    "c": 0.14039,
    "h": 286.3
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#2F1971
secondary
#8DA640
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1971

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

Preview Lab → · Contrast checker → · Palette generator →

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