#2F1152#2F1152

#2F1152 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.111 H 299.8°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2F1152
RGBrgb(47, 17, 82)
HSLhsl(268, 66%, 19%)
HSVhsv(268, 79%, 32%)
CMYKcmyk(42.7%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.32, 29.79, -33.71)
CIE-LCHlch(13.32, 44.98, 311.47°)
OKLaboklab(26.61% 0.0552 -0.0962)
OKLCHoklch(26.61% 0.111 299.8)
XYZxyz(2.8953, 1.6144, 8.1401)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1152 #345211
analogous
#111452 #2F1152 #501152
triadic
#2F1152 #522F11 #11522F
tetradic
#2F1152 #521114 #345211 #115250
square
#2F1152 #521114 #345211 #115250
split-complementary
#2F1152 #525011 #145211
monochromatic
#0F0519 #12061F #2F1152 #4C1C85 #6926B7

Accessibility & contrast

On white

15.88
#2F1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1152
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1152#FFFFFF#000000##FFFFFF
##2F11521.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#272130
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1152;
/* rgb */ color: rgb(47, 17, 82);
/* oklch */ color: oklch(26.6% 0.111 299.8);
Tailwind
colors: {
  custom: {
    50: '#6c5283',
    500: '#2f1152',
    950: '#000000',
  },
}
SCSS
$custom: #2f1152;
$custom-light: #6c5283;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1152",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 267.692,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26605,
    "c": 0.11091,
    "h": 299.8
  },
  "luminance": 0.01614
}

Semantic roles & 50–950 ramp

primary
#2F1152
secondary
#638B34
accent
#E93F9A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1152

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

Preview Lab → · Contrast checker → · Palette generator →

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