#2F1884#2F1884

#2F1884 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.165 H 282.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1884
RGBrgb(47, 24, 132)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 82%, 52%)
CMYKcmyk(64.4%, 81.8%, 0%, 48.2%)
CIE-LABlab(19.73, 41.26, -55.91)
CIE-LCHlch(19.73, 69.49, 306.42°)
OKLaboklab(32.66% 0.0343 -0.1613)
OKLCHoklch(32.66% 0.165 282)
XYZxyz(5.6625, 2.9231, 22.0912)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1884 #6D8418
analogous
#183784 #2F1884 #651884
triadic
#2F1884 #842F18 #18842F
tetradic
#2F1884 #841837 #6D8418 #188465
square
#2F1884 #841837 #6D8418 #188465
split-complementary
#2F1884 #846518 #378418
monochromatic
#0A051C #1D0F50 #2F1884 #4121B8 #5D3BDB

Accessibility & contrast

On white

13.25
#2F1884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1884
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1884#FFFFFF#000000##FFFFFF
##2F18841.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1884;
/* rgb */ color: rgb(47, 24, 132);
/* oklch */ color: oklch(32.7% 0.165 282.0);
Tailwind
colors: {
  custom: {
    50: '#7459a9',
    500: '#2f1884',
    950: '#000000',
  },
}
SCSS
$custom: #2f1884;
$custom-light: #7459a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1884",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 252.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32661,
    "c": 0.16491,
    "h": 282
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

primary
#2F1884
secondary
#9EB840
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1884

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

Preview Lab → · Contrast checker → · Palette generator →

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