#2F216A#2F216A

#2F216A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.121 H 285.9°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2F216A
RGBrgb(47, 33, 106)
HSLhsl(252, 53%, 27%)
HSVhsv(252, 69%, 42%)
CMYKcmyk(55.7%, 68.9%, 0%, 58.4%)
CIE-LABlab(18.94, 27.80, -40.54)
CIE-LCHlch(18.94, 49.16, 304.43°)
OKLaboklab(31.31% 0.0331 -0.1164)
OKLCHoklch(31.31% 0.121 285.9)
XYZxyz(4.3169, 2.7324, 13.9328)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F216A #5C6A21
analogous
#21386A #2F216A #54216A
triadic
#2F216A #6A2F21 #216A2F
tetradic
#2F216A #6A2138 #5C6A21 #216A54
square
#2F216A #6A2138 #5C6A21 #216A54
split-complementary
#2F216A #6A5421 #386A21
monochromatic
#0A0717 #1A123B #2F216A #443099 #5A41C4

Accessibility & contrast

On white

13.58
#2F216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F216A
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F216A#FFFFFF#000000##FFFFFF
##2F216A1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#173342
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f216a;
/* rgb */ color: rgb(47, 33, 106);
/* oklch */ color: oklch(31.3% 0.121 285.9);
Tailwind
colors: {
  custom: {
    50: '#6e5d95',
    500: '#2f216a',
    950: '#000000',
  },
}
SCSS
$custom: #2f216a;
$custom-light: #6e5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#2f216a",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 251.507,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31306,
    "c": 0.121,
    "h": 285.9
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#2F216A
secondary
#8E9E49
accent
#DC4CC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2F216A

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

Preview Lab → · Contrast checker → · Palette generator →

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