#2F1681#2F1681

#2F1681 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.163 H 282.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2F1681
RGBrgb(47, 22, 129)
HSLhsl(254, 71%, 30%)
HSVhsv(254, 83%, 51%)
CMYKcmyk(63.6%, 82.9%, 0%, 49.4%)
CIE-LABlab(19.07, 41.30, -55.11)
CIE-LCHlch(19.07, 68.87, 306.85°)
OKLaboklab(32.1% 0.0365 -0.1589)
OKLCHoklch(32.1% 0.163 282.9)
XYZxyz(5.4204, 2.7628, 21.0123)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1681 #688116
analogous
#163281 #2F1681 #651681
triadic
#2F1681 #812F16 #16812F
tetradic
#2F1681 #811632 #688116 #168165
square
#2F1681 #811632 #688116 #168165
split-complementary
#2F1681 #816516 #328116
monochromatic
#0A041A #1C0D4D #2F1681 #421FB5 #5C35DD

Accessibility & contrast

On white

13.53
#2F1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1681
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1681#FFFFFF#000000##FFFFFF
##2F16811.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1681;
/* rgb */ color: rgb(47, 22, 129);
/* oklch */ color: oklch(32.1% 0.163 282.9);
Tailwind
colors: {
  custom: {
    50: '#7458a7',
    500: '#2f1681',
    950: '#000000',
  },
}
SCSS
$custom: #2f1681;
$custom-light: #7458a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1681",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 254.019,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.321,
    "c": 0.16308,
    "h": 282.9
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#2F1681
secondary
#99B63D
accent
#EE3AC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1681

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

Preview Lab → · Contrast checker → · Palette generator →

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