#2F1881#2F1881

#2F1881 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.161 H 282.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1881
RGBrgb(47, 24, 129)
HSLhsl(253, 69%, 30%)
HSVhsv(253, 81%, 51%)
CMYKcmyk(63.6%, 81.4%, 0%, 49.4%)
CIE-LABlab(19.40, 40.34, -54.56)
CIE-LCHlch(19.40, 67.86, 306.47°)
OKLaboklab(32.33% 0.0353 -0.1574)
OKLCHoklch(32.33% 0.161 282.6)
XYZxyz(5.4601, 2.8422, 21.0255)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1881 #6A8118
analogous
#183581 #2F1881 #641881
triadic
#2F1881 #812F18 #18812F
tetradic
#2F1881 #811835 #6A8118 #188164
square
#2F1881 #811835 #6A8118 #188164
split-complementary
#2F1881 #816418 #358118
monochromatic
#09051A #1C0E4D #2F1881 #4222B5 #5C39DA

Accessibility & contrast

On white

13.39
#2F1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1881
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1881#FFFFFF#000000##FFFFFF
##2F18811.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1881;
/* rgb */ color: rgb(47, 24, 129);
/* oklch */ color: oklch(32.3% 0.161 282.6);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2f1881',
    950: '#000000',
  },
}
SCSS
$custom: #2f1881;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1881",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 253.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.32331,
    "c": 0.16128,
    "h": 282.6
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#2F1881
secondary
#9BB540
accent
#EB3CC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1881

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

Preview Lab → · Contrast checker → · Palette generator →

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