#2F1266#2F1266

#2F1266 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.134 H 291.1°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2F1266
RGBrgb(47, 18, 102)
HSLhsl(261, 70%, 24%)
HSVhsv(261, 82%, 40%)
CMYKcmyk(53.9%, 82.4%, 0%, 60%)
CIE-LABlab(15.47, 35.13, -43.60)
CIE-LCHlch(15.47, 55.99, 308.86°)
OKLaboklab(28.72% 0.0484 -0.1253)
OKLCHoklch(28.72% 0.134 291.1)
XYZxyz(3.7862, 1.9961, 12.7536)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1266 #496612
analogous
#121F66 #2F1266 #591266
triadic
#2F1266 #662F12 #12662F
tetradic
#2F1266 #66121F #496612 #126659
square
#2F1266 #66121F #496612 #126659
split-complementary
#2F1266 #665912 #1F6612
monochromatic
#0C051A #170932 #2F1266 #471B9A #5F24CE

Accessibility & contrast

On white

15.01
#2F1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1266
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1266#FFFFFF#000000##FFFFFF
##2F12661.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#1C2A3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1266;
/* rgb */ color: rgb(47, 18, 102);
/* oklch */ color: oklch(28.7% 0.134 291.1);
Tailwind
colors: {
  custom: {
    50: '#6f5493',
    500: '#2f1266',
    950: '#000000',
  },
}
SCSS
$custom: #2f1266;
$custom-light: #6f5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1266",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 260.714,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2872,
    "c": 0.1343,
    "h": 291.1
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#2F1266
secondary
#7A9E36
accent
#ED3BAF
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1266

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

Preview Lab → · Contrast checker → · Palette generator →

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