#2F1660#2F1660

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

Color values

HEX#2F1660
RGBrgb(47, 22, 96)
HSLhsl(260, 63%, 23%)
HSVhsv(260, 77%, 38%)
CMYKcmyk(51%, 77.1%, 0%, 62.4%)
CIE-LABlab(15.61, 31.22, -39.40)
CIE-LCHlch(15.61, 50.27, 308.39°)
OKLaboklab(28.63% 0.0465 -0.113)
OKLCHoklch(28.63% 0.122 292.4)
XYZxyz(3.5699, 2.0226, 11.2664)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1660 #476016
analogous
#162260 #2F1660 #541660
triadic
#2F1660 #602F16 #16602F
tetradic
#2F1660 #601622 #476016 #166054
square
#2F1660 #601622 #476016 #166054
split-complementary
#2F1660 #605416 #226016
monochromatic
#0C0619 #170B2E #2F1660 #472192 #602DC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1660#FFFFFF#000000##FFFFFF
##2F16601.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)
#002862
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#202939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1660;
/* rgb */ color: rgb(47, 22, 96);
/* oklch */ color: oklch(28.6% 0.122 292.4);
Tailwind
colors: {
  custom: {
    50: '#6d568e',
    500: '#2f1660',
    950: '#000000',
  },
}
SCSS
$custom: #2f1660;
$custom-light: #6d568e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1660",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 260.27,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28633,
    "c": 0.12219,
    "h": 292.4
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#2F1660
secondary
#78973B
accent
#E642AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1660

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

Preview Lab → · Contrast checker → · Palette generator →

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