#2F1665#2F1665

#2F1665 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.129 H 290.6°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1665
RGBrgb(47, 22, 101)
HSLhsl(259, 64%, 24%)
HSVhsv(259, 78%, 40%)
CMYKcmyk(53.5%, 78.2%, 0%, 60.4%)
CIE-LABlab(16.09, 32.75, -41.92)
CIE-LCHlch(16.09, 53.19, 308.00°)
OKLaboklab(29.13% 0.0452 -0.1204)
OKLCHoklch(29.13% 0.129 290.6)
XYZxyz(3.8075, 2.1176, 12.5175)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1665 #4C6516
analogous
#162565 #2F1665 #571665
triadic
#2F1665 #652F16 #16652F
tetradic
#2F1665 #651625 #4C6516 #166557
square
#2F1665 #651625 #4C6516 #166557
split-complementary
#2F1665 #655716 #256516
monochromatic
#0C0519 #180B33 #2F1665 #462197 #5E2CCA

Accessibility & contrast

On white

14.75
#2F1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1665
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1665#FFFFFF#000000##FFFFFF
##2F16651.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#1C2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1665;
/* rgb */ color: rgb(47, 22, 101);
/* oklch */ color: oklch(29.1% 0.129 290.6);
Tailwind
colors: {
  custom: {
    50: '#6e5692',
    500: '#2f1665',
    950: '#000000',
  },
}
SCSS
$custom: #2f1665;
$custom-light: #6e5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1665",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 258.987,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29127,
    "c": 0.12858,
    "h": 290.6
  },
  "luminance": 0.02118
}

Semantic roles & 50–950 ramp

primary
#2F1665
secondary
#7D9C3B
accent
#E741B2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1665

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

Preview Lab → · Contrast checker → · Palette generator →

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