#2F1664#2F1664

#2F1664 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.127 H 290.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#2F1664
RGBrgb(47, 22, 100)
HSLhsl(259, 64%, 24%)
HSVhsv(259, 78%, 39%)
CMYKcmyk(53%, 78%, 0%, 60.8%)
CIE-LABlab(15.99, 32.44, -41.42)
CIE-LCHlch(15.99, 52.61, 308.07°)
OKLaboklab(29.03% 0.0455 -0.1189)
OKLCHoklch(29.03% 0.127 290.9)
XYZxyz(3.7588, 2.0981, 12.2610)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1664 #4B6416
analogous
#162464 #2F1664 #561664
triadic
#2F1664 #642F16 #16642F
tetradic
#2F1664 #641624 #4B6416 #166456
square
#2F1664 #641624 #4B6416 #166456
split-complementary
#2F1664 #645616 #246416
monochromatic
#0C0619 #170B32 #2F1664 #472196 #5E2CC8

Accessibility & contrast

On white

14.79
#2F1664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1664
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1664#FFFFFF#000000##FFFFFF
##2F16641.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1664;
/* rgb */ color: rgb(47, 22, 100);
/* oklch */ color: oklch(29.0% 0.127 290.9);
Tailwind
colors: {
  custom: {
    50: '#6e5691',
    500: '#2f1664',
    950: '#000000',
  },
}
SCSS
$custom: #2f1664;
$custom-light: #6e5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1664",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 259.231,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29027,
    "c": 0.1273,
    "h": 290.9
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1664

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

Preview Lab → · Contrast checker → · Palette generator →

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