#2F1552#2F1552

#2F1552 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.105 H 298.7°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2F1552
RGBrgb(47, 21, 82)
HSLhsl(266, 59%, 20%)
HSVhsv(266, 74%, 32%)
CMYKcmyk(42.7%, 74.4%, 0%, 67.8%)
CIE-LABlab(14.12, 27.56, -32.41)
CIE-LCHlch(14.12, 42.54, 310.38°)
OKLaboklab(27.17% 0.0505 -0.0924)
OKLCHoklch(27.17% 0.105 298.7)
XYZxyz(2.9631, 1.7498, 8.1626)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1552 #385215
analogous
#151952 #2F1552 #4D1552
triadic
#2F1552 #522F15 #15522F
tetradic
#2F1552 #521519 #385215 #15524D
square
#2F1552 #521519 #385215 #15524D
split-complementary
#2F1552 #524D15 #195215
monochromatic
#0E0618 #130921 #2F1552 #4B2183 #672EB3

Accessibility & contrast

On white

15.56
#2F1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1552
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1552#FFFFFF#000000##FFFFFF
##2F15521.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#272331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1552;
/* rgb */ color: rgb(47, 21, 82);
/* oklch */ color: oklch(27.2% 0.105 298.7);
Tailwind
colors: {
  custom: {
    50: '#6b5483',
    500: '#2f1552',
    950: '#000000',
  },
}
SCSS
$custom: #2f1552;
$custom-light: #6b5483;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1552",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 265.574,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27173,
    "c": 0.10535,
    "h": 298.7
  },
  "luminance": 0.0175
}

Semantic roles & 50–950 ramp

primary
#2F1552
secondary
#678A39
accent
#E2459F
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1552

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

Preview Lab → · Contrast checker → · Palette generator →

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