#2F1460#2F1460

#2F1460 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.125 H 292.9°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2F1460
RGBrgb(47, 20, 96)
HSLhsl(261, 66%, 23%)
HSVhsv(261, 79%, 38%)
CMYKcmyk(51%, 79.2%, 0%, 62.4%)
CIE-LABlab(15.22, 32.31, -40.04)
CIE-LCHlch(15.22, 51.45, 308.91°)
OKLaboklab(28.36% 0.0485 -0.1148)
OKLCHoklch(28.36% 0.125 292.9)
XYZxyz(3.5332, 1.9491, 11.2541)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1460 #456014
analogous
#141F60 #2F1460 #551460
triadic
#2F1460 #602F14 #14602F
tetradic
#2F1460 #60141F #456014 #146055
square
#2F1460 #60141F #456014 #146055
split-complementary
#2F1460 #605514 #1F6014
monochromatic
#0C0519 #16092D #2F1460 #481F93 #6129C5

Accessibility & contrast

On white

15.11
#2F1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1460 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1460
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1460#FFFFFF#000000##FFFFFF
##2F14601.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#202839
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1460;
/* rgb */ color: rgb(47, 20, 96);
/* oklch */ color: oklch(28.4% 0.125 292.9);
Tailwind
colors: {
  custom: {
    50: '#6d558e',
    500: '#2f1460',
    950: '#000000',
  },
}
SCSS
$custom: #2f1460;
$custom-light: #6d558e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1460",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 261.316,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28359,
    "c": 0.12464,
    "h": 292.9
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#2F1460
secondary
#769838
accent
#E83FAC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1460

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

Preview Lab → · Contrast checker → · Palette generator →

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