#2F2256#2F2256

#2F2256 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.090 H 291.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2F2256
RGBrgb(47, 34, 86)
HSLhsl(255, 43%, 24%)
HSVhsv(255, 60%, 34%)
CMYKcmyk(45.3%, 60.5%, 0%, 66.3%)
CIE-LABlab(17.55, 20.50, -29.56)
CIE-LCHlch(17.55, 35.97, 304.74°)
OKLaboklab(29.78% 0.0331 -0.0841)
OKLCHoklch(29.78% 0.09 291.5)
XYZxyz(3.4236, 2.4202, 9.0891)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2256 #495622
analogous
#222F56 #2F2256 #492256
triadic
#2F2256 #562F22 #22562F
tetradic
#2F2256 #56222F #495622 #225649
square
#2F2256 #56222F #495622 #225649
split-complementary
#2F2256 #564922 #2F5622
monochromatic
#0C0916 #17112A #2F2256 #473382 #5F45AE

Accessibility & contrast

On white

14.15
#2F2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F2256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2256
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2256#FFFFFF#000000##FFFFFF
##2F22561.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072C58
Deuteranopia (green-blind)
#0A2A55
Tritanopia (blue-blind)
#242D38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f2256;
/* rgb */ color: rgb(47, 34, 86);
/* oklch */ color: oklch(29.8% 0.090 291.5);
Tailwind
colors: {
  custom: {
    50: '#6b5d86',
    500: '#2f2256',
    950: '#000000',
  },
}
SCSS
$custom: #2f2256;
$custom-light: #6b5d86;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2256",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 255,
    "s": 43.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29777,
    "c": 0.09033,
    "h": 291.5
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#2F2256
secondary
#7A8A4A
accent
#D355B3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2256

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

Preview Lab → · Contrast checker → · Palette generator →

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