#2F1790#2F1790

#2F1790 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.180 H 279.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1790
RGBrgb(47, 23, 144)
HSLhsl(252, 72%, 33%)
HSVhsv(252, 84%, 56%)
CMYKcmyk(67.4%, 84%, 0%, 43.5%)
CIE-LABlab(20.94, 45.35, -61.43)
CIE-LCHlch(20.94, 76.35, 306.44°)
OKLaboklab(33.9% 0.0309 -0.1773)
OKLCHoklch(33.9% 0.18 279.9)
XYZxyz(6.5111, 3.2302, 26.6605)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1790 #789017
analogous
#173B90 #2F1790 #6B1790
triadic
#2F1790 #902F17 #17902F
tetradic
#2F1790 #90173B #789017 #17906B
square
#2F1790 #90173B #789017 #17906B
split-complementary
#2F1790 #906B17 #3B9017
monochromatic
#0D0626 #1E0F5B #2F1790 #401FC5 #6041E1

Accessibility & contrast

On white

12.76
#2F1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1790
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1790#FFFFFF#000000##FFFFFF
##2F17901.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1790;
/* rgb */ color: rgb(47, 23, 144);
/* oklch */ color: oklch(33.9% 0.180 279.9);
Tailwind
colors: {
  custom: {
    50: '#7759b2',
    500: '#2f1790',
    950: '#000000',
  },
}
SCSS
$custom: #2f1790;
$custom-light: #7759b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1790",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 251.901,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33901,
    "c": 0.18,
    "h": 279.9
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#2F1790
secondary
#A8C142
accent
#EF39CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1790

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

Preview Lab → · Contrast checker → · Palette generator →

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