#2F1562#2F1562

#2F1562 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.126 H 291.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1562
RGBrgb(47, 21, 98)
HSLhsl(260, 65%, 23%)
HSVhsv(260, 79%, 38%)
CMYKcmyk(52%, 78.6%, 0%, 61.6%)
CIE-LABlab(15.60, 32.38, -40.73)
CIE-LCHlch(15.60, 52.03, 308.48°)
OKLaboklab(28.69% 0.047 -0.1169)
OKLCHoklch(28.69% 0.126 291.9)
XYZxyz(3.6444, 2.0224, 11.7512)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1562 #486215
analogous
#152162 #2F1562 #551562
triadic
#2F1562 #622F15 #15622F
tetradic
#2F1562 #621521 #486215 #156255
square
#2F1562 #621521 #486215 #156255
split-complementary
#2F1562 #625515 #216215
monochromatic
#0C0519 #170A30 #2F1562 #472094 #5F2BC7

Accessibility & contrast

On white

14.95
#2F1562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1562
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1562#FFFFFF#000000##FFFFFF
##2F15621.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#1E2A3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1562;
/* rgb */ color: rgb(47, 21, 98);
/* oklch */ color: oklch(28.7% 0.126 291.9);
Tailwind
colors: {
  custom: {
    50: '#6e558f',
    500: '#2f1562',
    950: '#000000',
  },
}
SCSS
$custom: #2f1562;
$custom-light: #6e558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1562",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 260.26,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28692,
    "c": 0.12597,
    "h": 291.9
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#2F1562
secondary
#79993A
accent
#E840AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1562

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

Preview Lab → · Contrast checker → · Palette generator →

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