#2F1563#2F1563

#2F1563 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.127 H 291.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2F1563
RGBrgb(47, 21, 99)
HSLhsl(260, 65%, 24%)
HSVhsv(260, 79%, 39%)
CMYKcmyk(52.5%, 78.8%, 0%, 61.2%)
CIE-LABlab(15.70, 32.68, -41.23)
CIE-LCHlch(15.70, 52.61, 308.40°)
OKLaboklab(28.79% 0.0467 -0.1184)
OKLCHoklch(28.79% 0.127 291.5)
XYZxyz(3.6919, 2.0414, 12.0015)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1563 #496315
analogous
#152263 #2F1563 #561563
triadic
#2F1563 #632F15 #15632F
tetradic
#2F1563 #631522 #496315 #156356
square
#2F1563 #631522 #496315 #156356
split-complementary
#2F1563 #635615 #226315
monochromatic
#0C0519 #170A31 #2F1563 #472095 #5F2AC8

Accessibility & contrast

On white

14.91
#2F1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1563
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1563#FFFFFF#000000##FFFFFF
##2F15631.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#1E2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1563;
/* rgb */ color: rgb(47, 21, 99);
/* oklch */ color: oklch(28.8% 0.127 291.5);
Tailwind
colors: {
  custom: {
    50: '#6e5590',
    500: '#2f1563',
    950: '#000000',
  },
}
SCSS
$custom: #2f1563;
$custom-light: #6e5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1563",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 260,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28792,
    "c": 0.12723,
    "h": 291.5
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#2F1563
secondary
#7A9A3A
accent
#E840B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #2F1563

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

Preview Lab → · Contrast checker → · Palette generator →

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