#2F1557#2F1557

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

Color values

HEX#2F1557
RGBrgb(47, 21, 87)
HSLhsl(264, 61%, 21%)
HSVhsv(264, 76%, 34%)
CMYKcmyk(46%, 75.9%, 0%, 65.9%)
CIE-LABlab(14.56, 29.05, -35.07)
CIE-LCHlch(14.56, 45.54, 309.63°)
OKLaboklab(27.63% 0.0496 -0.1003)
OKLCHoklch(27.63% 0.112 296.3)
XYZxyz(3.1603, 1.8287, 9.2014)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1557 #3D5715
analogous
#151C57 #2F1557 #501557
triadic
#2F1557 #572F15 #15572F
tetradic
#2F1557 #57151C #3D5715 #155750
square
#2F1557 #57151C #3D5715 #155750
split-complementary
#2F1557 #575015 #1C5715
monochromatic
#0D0619 #140926 #2F1557 #4A2188 #642DBA

Accessibility & contrast

On white

15.38
#2F1557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1557
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1557#FFFFFF#000000##FFFFFF
##2F15571.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#252534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1557;
/* rgb */ color: rgb(47, 21, 87);
/* oklch */ color: oklch(27.6% 0.112 296.3);
Tailwind
colors: {
  custom: {
    50: '#6c5587',
    500: '#2f1557',
    950: '#000000',
  },
}
SCSS
$custom: #2f1557;
$custom-light: #6c5587;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1557",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 263.636,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27631,
    "c": 0.11187,
    "h": 296.3
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#2F1557
secondary
#6D8F39
accent
#E444A5
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1557

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

Preview Lab → · Contrast checker → · Palette generator →

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