#2F1565#2F1565

#2F1565 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.130 H 290.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2F1565
RGBrgb(47, 21, 101)
HSLhsl(260, 66%, 24%)
HSVhsv(260, 79%, 40%)
CMYKcmyk(53.5%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.90, 33.29, -42.23)
CIE-LCHlch(15.90, 53.77, 308.25°)
OKLaboklab(28.99% 0.0461 -0.1213)
OKLCHoklch(28.99% 0.13 290.8)
XYZxyz(3.7887, 2.0801, 12.5113)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1565 #4B6515
analogous
#152365 #2F1565 #571565
triadic
#2F1565 #652F15 #15652F
tetradic
#2F1565 #651523 #4B6515 #156557
square
#2F1565 #651523 #4B6515 #156557
split-complementary
#2F1565 #655715 #236515
monochromatic
#0C0519 #170A32 #2F1565 #472098 #5E2ACA

Accessibility & contrast

On white

14.83
#2F1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F1565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1565
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1565#FFFFFF#000000##FFFFFF
##2F15651.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#1C2B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f1565;
/* rgb */ color: rgb(47, 21, 101);
/* oklch */ color: oklch(29.0% 0.130 290.8);
Tailwind
colors: {
  custom: {
    50: '#6e5592',
    500: '#2f1565',
    950: '#000000',
  },
}
SCSS
$custom: #2f1565;
$custom-light: #6e5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1565",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 259.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28993,
    "c": 0.12975,
    "h": 290.8
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#2F1565
secondary
#7C9C3A
accent
#E93FB2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1565

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

Preview Lab → · Contrast checker → · Palette generator →

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