#2F1559#2F1559

#2F1559 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.114 H 295.4°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1559
RGBrgb(47, 21, 89)
HSLhsl(263, 62%, 22%)
HSVhsv(263, 76%, 35%)
CMYKcmyk(47.2%, 76.4%, 0%, 65.1%)
CIE-LABlab(14.75, 29.65, -36.12)
CIE-LCHlch(14.75, 46.73, 309.38°)
OKLaboklab(27.82% 0.0492 -0.1034)
OKLCHoklch(27.82% 0.114 295.4)
XYZxyz(3.2431, 1.8619, 9.6378)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1559 #3F5915
analogous
#151D59 #2F1559 #511559
triadic
#2F1559 #592F15 #15592F
tetradic
#2F1559 #59151D #3F5915 #155951
square
#2F1559 #59151D #3F5915 #155951
split-complementary
#2F1559 #595115 #1D5915
monochromatic
#0D0619 #150927 #2F1559 #49218B #632CBC

Accessibility & contrast

On white

15.30
#2F1559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1559
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1559#FFFFFF#000000##FFFFFF
##2F15591.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#242635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1559;
/* rgb */ color: rgb(47, 21, 89);
/* oklch */ color: oklch(27.8% 0.114 295.4);
Tailwind
colors: {
  custom: {
    50: '#6c5589',
    500: '#2f1559',
    950: '#000000',
  },
}
SCSS
$custom: #2f1559;
$custom-light: #6c5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1559",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 262.941,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27818,
    "c": 0.11446,
    "h": 295.4
  },
  "luminance": 0.01862
}

Semantic roles & 50–950 ramp

primary
#2F1559
secondary
#6F9139
accent
#E543A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1559

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

Preview Lab → · Contrast checker → · Palette generator →

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