#2F1553#2F1553

#2F1553 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.107 H 298.2°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2F1553
RGBrgb(47, 21, 83)
HSLhsl(265, 60%, 20%)
HSVhsv(265, 75%, 33%)
CMYKcmyk(43.4%, 74.7%, 0%, 67.5%)
CIE-LABlab(14.20, 27.85, -32.95)
CIE-LCHlch(14.20, 43.14, 310.21°)
OKLaboklab(27.26% 0.0504 -0.094)
OKLCHoklch(27.26% 0.107 298.2)
XYZxyz(3.0014, 1.7652, 8.3645)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1553 #395315
analogous
#151A53 #2F1553 #4E1553
triadic
#2F1553 #532F15 #15532F
tetradic
#2F1553 #53151A #395315 #15534E
square
#2F1553 #53151A #395315 #15534E
split-complementary
#2F1553 #534E15 #1A5315
monochromatic
#0E0618 #130922 #2F1553 #4B2184 #662EB5

Accessibility & contrast

On white

15.52
#2F1553 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1553 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1553
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1553#FFFFFF#000000##FFFFFF
##2F15531.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#262432
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1553;
/* rgb */ color: rgb(47, 21, 83);
/* oklch */ color: oklch(27.3% 0.107 298.2);
Tailwind
colors: {
  custom: {
    50: '#6b5484',
    500: '#2f1553',
    950: '#000000',
  },
}
SCSS
$custom: #2f1553;
$custom-light: #6b5484;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1553",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 83
  },
  "hsl": {
    "h": 265.161,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27263,
    "c": 0.10665,
    "h": 298.2
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#2F1553
secondary
#688B39
accent
#E345A1
background
#F6F5F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1553

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

Preview Lab → · Contrast checker → · Palette generator →

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