#2F1693#2F1693

#2F1693 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.184 H 279.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1693
RGBrgb(47, 22, 147)
HSLhsl(252, 74%, 33%)
HSVhsv(252, 85%, 58%)
CMYKcmyk(68%, 85%, 0%, 42.4%)
CIE-LABlab(21.15, 46.67, -62.95)
CIE-LCHlch(21.15, 78.36, 306.55°)
OKLaboklab(34.14% 0.0303 -0.1817)
OKLCHoklch(34.14% 0.184 279.5)
XYZxyz(6.7240, 3.2842, 27.8777)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1693 #7A9316
analogous
#163B93 #2F1693 #6D1693
triadic
#2F1693 #932F16 #16932F
tetradic
#2F1693 #93163B #7A9316 #16936D
square
#2F1693 #93163B #7A9316 #16936D
split-complementary
#2F1693 #936D16 #3B9316
monochromatic
#0D0629 #1E0E5E #2F1693 #401EC8 #6141E3

Accessibility & contrast

On white

12.67
#2F1693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F1693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1693
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1693#FFFFFF#000000##FFFFFF
##2F16931.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1693;
/* rgb */ color: rgb(47, 22, 147);
/* oklch */ color: oklch(34.1% 0.184 279.5);
Tailwind
colors: {
  custom: {
    50: '#7759b4',
    500: '#2f1693',
    950: '#000000',
  },
}
SCSS
$custom: #2f1693;
$custom-light: #7759b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1693",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 147
  },
  "hsl": {
    "h": 252,
    "s": 73.964,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.18425,
    "h": 279.5
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#2F1693
secondary
#A9C342
accent
#F137CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1693

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

Preview Lab → · Contrast checker → · Palette generator →

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