#2F1880#2F1880

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

Color values

HEX#2F1880
RGBrgb(47, 24, 128)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 50%)
CMYKcmyk(63.3%, 81.3%, 0%, 49.8%)
CIE-LABlab(19.29, 40.03, -54.11)
CIE-LCHlch(19.29, 67.31, 306.49°)
OKLaboklab(32.22% 0.0356 -0.156)
OKLCHoklch(32.22% 0.16 282.9)
XYZxyz(5.3940, 2.8157, 20.6771)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1880 #698018
analogous
#183580 #2F1880 #631880
triadic
#2F1880 #802F18 #18802F
tetradic
#2F1880 #801835 #698018 #188063
square
#2F1880 #801835 #698018 #188063
split-complementary
#2F1880 #806318 #358018
monochromatic
#09051A #1C0E4C #2F1880 #4222B4 #5C39DA

Accessibility & contrast

On white

13.43
#2F1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1880
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1880#FFFFFF#000000##FFFFFF
##2F18801.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1880;
/* rgb */ color: rgb(47, 24, 128);
/* oklch */ color: oklch(32.2% 0.160 282.9);
Tailwind
colors: {
  custom: {
    50: '#7359a6',
    500: '#2f1880',
    950: '#000000',
  },
}
SCSS
$custom: #2f1880;
$custom-light: #7359a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1880",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 253.269,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32222,
    "c": 0.16006,
    "h": 282.9
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#2F1880
secondary
#9AB440
accent
#EB3DC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1880

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

Preview Lab → · Contrast checker → · Palette generator →

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