#2F2555#2F2555

#2F2555 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.3% C 0.084 H 290.1°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2F2555
RGBrgb(47, 37, 85)
HSLhsl(253, 39%, 24%)
HSVhsv(253, 56%, 33%)
CMYKcmyk(44.7%, 56.5%, 0%, 66.7%)
CIE-LABlab(18.29, 18.11, -27.70)
CIE-LCHlch(18.29, 33.10, 303.18°)
OKLaboklab(30.3% 0.0287 -0.0786)
OKLCHoklch(30.3% 0.084 290.1)
XYZxyz(3.4731, 2.5832, 8.9082)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2555 #4B5525
analogous
#253355 #2F2555 #472555
triadic
#2F2555 #552F25 #25552F
tetradic
#2F2555 #552533 #4B5525 #255547
square
#2F2555 #552533 #4B5525 #255547
split-complementary
#2F2555 #554725 #335525
monochromatic
#0C0915 #17122A #2F2555 #473880 #5E4AAA

Accessibility & contrast

On white

13.85
#2F2555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F2555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2555
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2555#FFFFFF#000000##FFFFFF
##2F25551.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E57
Deuteranopia (green-blind)
#112C54
Tritanopia (blue-blind)
#242F39
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2555;
/* rgb */ color: rgb(47, 37, 85);
/* oklch */ color: oklch(30.3% 0.084 290.1);
Tailwind
colors: {
  custom: {
    50: '#6a5f85',
    500: '#2f2555',
    950: '#000000',
  },
}
SCSS
$custom: #2f2555;
$custom-light: #6a5f85;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2555",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 85
  },
  "hsl": {
    "h": 252.5,
    "s": 39.344,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30301,
    "c": 0.0837,
    "h": 290.1
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#2F2555
secondary
#7C884D
accent
#CF59B7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2555

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

Preview Lab → · Contrast checker → · Palette generator →

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