#2F1A4E#2F1A4E

#2F1A4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.092 H 298.8°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2F1A4E
RGBrgb(47, 26, 78)
HSLhsl(264, 50%, 20%)
HSVhsv(264, 67%, 31%)
CMYKcmyk(39.7%, 66.7%, 0%, 69.4%)
CIE-LABlab(14.92, 23.27, -28.38)
CIE-LCHlch(14.92, 36.70, 309.35°)
OKLaboklab(27.65% 0.0444 -0.0806)
OKLCHoklch(27.65% 0.092 298.8)
XYZxyz(2.9165, 1.8932, 7.4180)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A4E #394E1A
analogous
#1A1F4E #2F1A4E #491A4E
triadic
#2F1A4E #4E2F1A #1A4E2F
tetradic
#2F1A4E #4E1A1F #394E1A #1A4E49
square
#2F1A4E #4E1A1F #394E1A #1A4E49
split-complementary
#2F1A4E #4E491A #1F4E1A
monochromatic
#0E0817 #130B20 #2F1A4E #4B297C #6639AA

Accessibility & contrast

On white

15.23
#2F1A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A4E
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A4E#FFFFFF#000000##FFFFFF
##2F1A4E1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#06254D
Tritanopia (blue-blind)
#282531
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1a4e;
/* rgb */ color: rgb(47, 26, 78);
/* oklch */ color: oklch(27.6% 0.092 298.8);
Tailwind
colors: {
  custom: {
    50: '#6a5780',
    500: '#2f1a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a4e;
$custom-light: #6a5780;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a4e",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 264.231,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27647,
    "c": 0.09204,
    "h": 298.8
  },
  "luminance": 0.01893
}

Semantic roles & 50–950 ramp

primary
#2F1A4E
secondary
#688440
accent
#DA4EA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F1A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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