#2F1794#2F1794

#2F1794 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.185 H 279.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#2F1794
RGBrgb(47, 23, 148)
HSLhsl(252, 73%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(68.2%, 84.5%, 0%, 42%)
CIE-LABlab(21.41, 46.54, -63.13)
CIE-LCHlch(21.41, 78.43, 306.40°)
OKLaboklab(34.36% 0.0296 -0.1823)
OKLCHoklch(34.36% 0.185 279.2)
XYZxyz(6.8223, 3.3547, 28.2992)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1794 #7C9417
analogous
#173D94 #2F1794 #6D1794
triadic
#2F1794 #942F17 #17942F
tetradic
#2F1794 #94173D #7C9417 #17946D
square
#2F1794 #94173D #7C9417 #17946D
split-complementary
#2F1794 #946D17 #3D9417
monochromatic
#0D072A #1E0F5F #2F1794 #401FC9 #6244E2

Accessibility & contrast

On white

12.57
#2F1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1794
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1794#FFFFFF#000000##FFFFFF
##2F17941.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1794;
/* rgb */ color: rgb(47, 23, 148);
/* oklch */ color: oklch(34.4% 0.185 279.2);
Tailwind
colors: {
  custom: {
    50: '#775ab5',
    500: '#2f1794',
    950: '#000000',
  },
}
SCSS
$custom: #2f1794;
$custom-light: #775ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1794",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 251.52,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3436,
    "c": 0.18467,
    "h": 279.2
  },
  "luminance": 0.03355
}

Semantic roles & 50–950 ramp

primary
#2F1794
secondary
#AAC344
accent
#F038CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1794

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

Preview Lab → · Contrast checker → · Palette generator →

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