#2F1456#2F1456

#2F1456 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.112 H 297.1°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#2F1456
RGBrgb(47, 20, 86)
HSLhsl(265, 62%, 21%)
HSVhsv(265, 77%, 34%)
CMYKcmyk(45.3%, 76.7%, 0%, 66.3%)
CIE-LABlab(14.27, 29.32, -34.88)
CIE-LCHlch(14.27, 45.56, 310.05°)
OKLaboklab(27.39% 0.0509 -0.0997)
OKLCHoklch(27.39% 0.112 297.1)
XYZxyz(3.1017, 1.7765, 8.9818)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1456 #3B5614
analogous
#141A56 #2F1456 #501456
triadic
#2F1456 #562F14 #14562F
tetradic
#2F1456 #56141A #3B5614 #145650
square
#2F1456 #56141A #3B5614 #145650
split-complementary
#2F1456 #565014 #1A5614
monochromatic
#0E0619 #140824 #2F1456 #4A2088 #652BB9

Accessibility & contrast

On white

15.49
#2F1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1456
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1456#FFFFFF#000000##FFFFFF
##2F14561.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#252433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1456;
/* rgb */ color: rgb(47, 20, 86);
/* oklch */ color: oklch(27.4% 0.112 297.1);
Tailwind
colors: {
  custom: {
    50: '#6c5486',
    500: '#2f1456',
    950: '#000000',
  },
}
SCSS
$custom: #2f1456;
$custom-light: #6c5486;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1456",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 264.545,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27393,
    "c": 0.11194,
    "h": 297.1
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#2F1456
secondary
#6B8E38
accent
#E542A3
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1456

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

Preview Lab → · Contrast checker → · Palette generator →

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