#2F1558#2F1558

#2F1558 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.113 H 295.9°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1558
RGBrgb(47, 21, 88)
HSLhsl(263, 61%, 21%)
HSVhsv(263, 76%, 35%)
CMYKcmyk(46.6%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.65, 29.35, -35.60)
CIE-LCHlch(14.65, 46.14, 309.50°)
OKLaboklab(27.72% 0.0494 -0.1018)
OKLCHoklch(27.72% 0.113 295.9)
XYZxyz(3.2014, 1.8452, 9.4181)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1558 #3E5815
analogous
#151D58 #2F1558 #511558
triadic
#2F1558 #582F15 #15582F
tetradic
#2F1558 #58151D #3E5815 #155851
square
#2F1558 #58151D #3E5815 #155851
split-complementary
#2F1558 #585115 #1D5815
monochromatic
#0D0619 #150927 #2F1558 #492189 #642DBB

Accessibility & contrast

On white

15.34
#2F1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1558
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1558#FFFFFF#000000##FFFFFF
##2F15581.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#242635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1558;
/* rgb */ color: rgb(47, 21, 88);
/* oklch */ color: oklch(27.7% 0.113 295.9);
Tailwind
colors: {
  custom: {
    50: '#6c5588',
    500: '#2f1558',
    950: '#000000',
  },
}
SCSS
$custom: #2f1558;
$custom-light: #6c5588;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1558",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 263.284,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27724,
    "c": 0.11316,
    "h": 295.9
  },
  "luminance": 0.01845
}

Semantic roles & 50–950 ramp

primary
#2F1558
secondary
#6E9039
accent
#E543A6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1558

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

Preview Lab → · Contrast checker → · Palette generator →

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