#2F1666#2F1666

#2F1666 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.130 H 290.2°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1666
RGBrgb(47, 22, 102)
HSLhsl(259, 65%, 24%)
HSVhsv(259, 78%, 40%)
CMYKcmyk(53.9%, 78.4%, 0%, 60%)
CIE-LABlab(16.19, 33.06, -42.41)
CIE-LCHlch(16.19, 53.77, 307.93°)
OKLaboklab(29.23% 0.0449 -0.1218)
OKLCHoklch(29.23% 0.13 290.2)
XYZxyz(3.8568, 2.1373, 12.7771)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1666 #4D6616
analogous
#162566 #2F1666 #571666
triadic
#2F1666 #662F16 #16662F
tetradic
#2F1666 #661625 #4D6616 #166657
square
#2F1666 #661625 #4D6616 #166657
split-complementary
#2F1666 #665716 #256616
monochromatic
#0C0519 #180B34 #2F1666 #462198 #5D2CCB

Accessibility & contrast

On white

14.71
#2F1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1666
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1666#FFFFFF#000000##FFFFFF
##2F16661.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1C2C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1666;
/* rgb */ color: rgb(47, 22, 102);
/* oklch */ color: oklch(29.2% 0.130 290.2);
Tailwind
colors: {
  custom: {
    50: '#6e5692',
    500: '#2f1666',
    950: '#000000',
  },
}
SCSS
$custom: #2f1666;
$custom-light: #6e5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1666",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 258.75,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.12985,
    "h": 290.2
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#2F1666
secondary
#7E9D3B
accent
#E840B3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1666

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

Preview Lab → · Contrast checker → · Palette generator →

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