#2F1684#2F1684

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

Color values

HEX#2F1684
RGBrgb(47, 22, 132)
HSLhsl(254, 71%, 30%)
HSVhsv(254, 83%, 52%)
CMYKcmyk(64.4%, 83.3%, 0%, 48.2%)
CIE-LABlab(19.41, 42.21, -56.45)
CIE-LCHlch(19.41, 70.49, 306.79°)
OKLaboklab(32.44% 0.0355 -0.1628)
OKLCHoklch(32.44% 0.167 282.3)
XYZxyz(5.6228, 2.8437, 22.0779)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1684 #6B8416
analogous
#163484 #2F1684 #661684
triadic
#2F1684 #842F16 #16842F
tetradic
#2F1684 #841634 #6B8416 #168466
square
#2F1684 #841634 #6B8416 #168466
split-complementary
#2F1684 #846616 #348416
monochromatic
#0A051B #1C0D50 #2F1684 #421FB8 #5D37DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1684#FFFFFF#000000##FFFFFF
##2F16841.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)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1684;
/* rgb */ color: rgb(47, 22, 132);
/* oklch */ color: oklch(32.4% 0.167 282.3);
Tailwind
colors: {
  custom: {
    50: '#7458a9',
    500: '#2f1684',
    950: '#000000',
  },
}
SCSS
$custom: #2f1684;
$custom-light: #7458a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1684",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 253.636,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32435,
    "c": 0.16666,
    "h": 282.3
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#2F1684
secondary
#9CB83D
accent
#EE3AC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1684

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

Preview Lab → · Contrast checker → · Palette generator →

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