#2F2452#2F2452

#2F2452 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.9% C 0.081 H 291.8°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2F2452
RGBrgb(47, 36, 82)
HSLhsl(254, 39%, 23%)
HSVhsv(254, 56%, 32%)
CMYKcmyk(42.7%, 56.1%, 0%, 67.8%)
CIE-LABlab(17.81, 17.82, -26.46)
CIE-LCHlch(17.81, 31.90, 303.96°)
OKLaboklab(29.87% 0.03 -0.075)
OKLCHoklch(29.87% 0.081 291.8)
XYZxyz(3.3257, 2.4752, 8.2835)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2452 #475224
analogous
#243052 #2F2452 #462452
triadic
#2F2452 #522F24 #24522F
tetradic
#2F2452 #522430 #475224 #245246
square
#2F2452 #522430 #475224 #245246
split-complementary
#2F2452 #524624 #305224
monochromatic
#0C0915 #171127 #2F2452 #47377D #6049A7

Accessibility & contrast

On white

14.05
#2F2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2452
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2452#FFFFFF#000000##FFFFFF
##2F24521.0014.051.5014.05
#FFFFFF14.051.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#262D37
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f2452;
/* rgb */ color: rgb(47, 36, 82);
/* oklch */ color: oklch(29.9% 0.081 291.8);
Tailwind
colors: {
  custom: {
    50: '#6a5f83',
    500: '#2f2452',
    950: '#000000',
  },
}
SCSS
$custom: #2f2452;
$custom-light: #6a5f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2452",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 254.348,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29872,
    "c": 0.08073,
    "h": 291.8
  },
  "luminance": 0.02475
}

Semantic roles & 50–950 ramp

primary
#2F2452
secondary
#78864C
accent
#CF59B3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2F2452

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

Preview Lab → · Contrast checker → · Palette generator →

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