#2F1690#2F1690

#2F1690 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.181 H 280.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2F1690
RGBrgb(47, 22, 144)
HSLhsl(252, 73%, 33%)
HSVhsv(252, 85%, 56%)
CMYKcmyk(67.4%, 84.7%, 0%, 43.5%)
CIE-LABlab(20.79, 45.79, -61.67)
CIE-LCHlch(20.79, 76.81, 306.59°)
OKLaboklab(33.8% 0.0314 -0.178)
OKLCHoklch(33.8% 0.181 280)
XYZxyz(6.4916, 3.1912, 26.6540)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1690 #779016
analogous
#163A90 #2F1690 #6C1690
triadic
#2F1690 #902F16 #16902F
tetradic
#2F1690 #90163A #779016 #16906C
square
#2F1690 #90163A #779016 #16906C
split-complementary
#2F1690 #906C16 #3A9016
monochromatic
#0C0626 #1E0E5B #2F1690 #401EC5 #603FE2

Accessibility & contrast

On white

12.82
#2F1690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1690
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1690#FFFFFF#000000##FFFFFF
##2F16901.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003693
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1690;
/* rgb */ color: rgb(47, 22, 144);
/* oklch */ color: oklch(33.8% 0.181 280.0);
Tailwind
colors: {
  custom: {
    50: '#7759b2',
    500: '#2f1690',
    950: '#000000',
  },
}
SCSS
$custom: #2f1690;
$custom-light: #7759b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1690",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 144
  },
  "hsl": {
    "h": 252.295,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33799,
    "c": 0.18078,
    "h": 280
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#2F1690
secondary
#A7C240
accent
#F038CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1690

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

Preview Lab → · Contrast checker → · Palette generator →

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