#2F1464#2F1464

#2F1464 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.130 H 291.4°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1464
RGBrgb(47, 20, 100)
HSLhsl(260, 67%, 24%)
HSVhsv(260, 80%, 39%)
CMYKcmyk(53%, 80%, 0%, 60.8%)
CIE-LABlab(15.62, 33.52, -42.04)
CIE-LCHlch(15.62, 53.76, 308.57°)
OKLaboklab(28.76% 0.0473 -0.1207)
OKLCHoklch(28.76% 0.13 291.4)
XYZxyz(3.7220, 2.0246, 12.2488)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1464 #496414
analogous
#142164 #2F1464 #571464
triadic
#2F1464 #642F14 #14642F
tetradic
#2F1464 #641421 #496414 #146457
square
#2F1464 #641421 #496414 #146457
split-complementary
#2F1464 #645714 #216414
monochromatic
#0C051A #170A31 #2F1464 #471E97 #5F28CA

Accessibility & contrast

On white

14.95
#2F1464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1464 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1464
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1464#FFFFFF#000000##FFFFFF
##2F14641.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1D2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1464;
/* rgb */ color: rgb(47, 20, 100);
/* oklch */ color: oklch(28.8% 0.130 291.4);
Tailwind
colors: {
  custom: {
    50: '#6e5591',
    500: '#2f1464',
    950: '#000000',
  },
}
SCSS
$custom: #2f1464;
$custom-light: #6e5591;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1464",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 260.25,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28761,
    "c": 0.12965,
    "h": 291.4
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#2F1464
secondary
#7A9B38
accent
#EA3EB0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1464

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

Preview Lab → · Contrast checker → · Palette generator →

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