#2F1242#2F1242

#2F1242 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.089 H 309.2°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1242
RGBrgb(47, 18, 66)
HSLhsl(276, 57%, 16%)
HSVhsv(276, 73%, 26%)
CMYKcmyk(28.8%, 72.7%, 0%, 74.1%)
CIE-LABlab(12.16, 24.74, -24.50)
CIE-LCHlch(12.16, 34.82, 315.28°)
OKLaboklab(25.35% 0.0565 -0.0692)
OKLCHoklch(25.35% 0.089 309.2)
XYZxyz(2.3718, 1.4303, 5.3043)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1242 #254212
analogous
#171242 #2F1242 #42123D
triadic
#2F1242 #422F12 #12422F
tetradic
#2F1242 #421712 #254212 #123D42
square
#2F1242 #421712 #254212 #123D42
split-complementary
#2F1242 #3D4212 #124217
monochromatic
#110718 #110718 #2F1242 #511F72 #732CA2

Accessibility & contrast

On white

16.33
#2F1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1242
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1242#FFFFFF#000000##FFFFFF
##2F12421.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#0B2041
Tritanopia (blue-blind)
#2C1C28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1242;
/* rgb */ color: rgb(47, 18, 66);
/* oklch */ color: oklch(25.3% 0.089 309.2);
Tailwind
colors: {
  custom: {
    50: '#6a5277',
    500: '#2f1242',
    950: '#000000',
  },
}
SCSS
$custom: #2f1242;
$custom-light: #6a5277;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1242",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 276.25,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25348,
    "c": 0.08928,
    "h": 309.2
  },
  "luminance": 0.0143
}

Semantic roles & 50–950 ramp

primary
#2F1242
secondary
#517B35
accent
#E04784
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F1242

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

Preview Lab → · Contrast checker → · Palette generator →

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