#2F1984#2F1984

#2F1984 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.164 H 281.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2F1984
RGBrgb(47, 25, 132)
HSLhsl(252, 68%, 31%)
HSVhsv(252, 81%, 52%)
CMYKcmyk(64.4%, 81.1%, 0%, 48.2%)
CIE-LABlab(19.90, 40.77, -55.63)
CIE-LCHlch(19.90, 68.97, 306.23°)
OKLaboklab(32.78% 0.0337 -0.1605)
OKLCHoklch(32.78% 0.164 281.9)
XYZxyz(5.6835, 2.9651, 22.0981)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1984 #6E8419
analogous
#193984 #2F1984 #641984
triadic
#2F1984 #842F19 #19842F
tetradic
#2F1984 #841939 #6E8419 #198464
square
#2F1984 #841939 #6E8419 #198464
split-complementary
#2F1984 #846419 #398419
monochromatic
#0A061D #1D0F51 #2F1984 #4123B7 #5D3DDA

Accessibility & contrast

On white

13.18
#2F1984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1984
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1984#FFFFFF#000000##FFFFFF
##2F19841.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1984;
/* rgb */ color: rgb(47, 25, 132);
/* oklch */ color: oklch(32.8% 0.164 281.9);
Tailwind
colors: {
  custom: {
    50: '#7459a9',
    500: '#2f1984',
    950: '#000000',
  },
}
SCSS
$custom: #2f1984;
$custom-light: #7459a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1984",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 252.336,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.164,
    "h": 281.9
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#2F1984
secondary
#9FB841
accent
#EB3DC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1984

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

Preview Lab → · Contrast checker → · Palette generator →

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