#2F1260#2F1260

#2F1260 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.127 H 293.3°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#2F1260
RGBrgb(47, 18, 96)
HSLhsl(262, 68%, 22%)
HSVhsv(262, 81%, 38%)
CMYKcmyk(51%, 81.3%, 0%, 62.4%)
CIE-LABlab(14.85, 33.35, -40.64)
CIE-LCHlch(14.85, 52.57, 309.38°)
OKLaboklab(28.1% 0.0503 -0.1166)
OKLCHoklch(28.1% 0.127 293.3)
XYZxyz(3.4993, 1.8814, 11.2428)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1260 #436012
analogous
#121C60 #2F1260 #561260
triadic
#2F1260 #602F12 #12602F
tetradic
#2F1260 #60121C #436012 #126056
square
#2F1260 #60121C #436012 #126056
split-complementary
#2F1260 #605612 #1C6012
monochromatic
#0D051A #16082C #2F1260 #481C94 #6125C7

Accessibility & contrast

On white

15.26
#2F1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1260
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1260#FFFFFF#000000##FFFFFF
##2F12601.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#202738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1260;
/* rgb */ color: rgb(47, 18, 96);
/* oklch */ color: oklch(28.1% 0.127 293.3);
Tailwind
colors: {
  custom: {
    50: '#6e538e',
    500: '#2f1260',
    950: '#000000',
  },
}
SCSS
$custom: #2f1260;
$custom-light: #6e538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1260",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 262.308,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28102,
    "c": 0.12697,
    "h": 293.3
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#2F1260
secondary
#749836
accent
#EB3DAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1260

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

Preview Lab → · Contrast checker → · Palette generator →

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