#2F1466#2F1466

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

Color values

HEX#2F1466
RGBrgb(47, 20, 102)
HSLhsl(260, 67%, 24%)
HSVhsv(260, 80%, 40%)
CMYKcmyk(53.9%, 80.4%, 0%, 60%)
CIE-LABlab(15.82, 34.12, -43.03)
CIE-LCHlch(15.82, 54.91, 308.42°)
OKLaboklab(28.97% 0.0467 -0.1236)
OKLCHoklch(28.97% 0.132 290.7)
XYZxyz(3.8200, 2.0638, 12.7649)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1466 #4B6614
analogous
#142266 #2F1466 #581466
triadic
#2F1466 #662F14 #14662F
tetradic
#2F1466 #661422 #4B6614 #146658
square
#2F1466 #661422 #4B6614 #146658
split-complementary
#2F1466 #665814 #226614
monochromatic
#0C051A #170A33 #2F1466 #471E99 #5E28CC

Accessibility & contrast

On white

14.86
#2F1466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1466
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1466#FFFFFF#000000##FFFFFF
##2F14661.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#1C2B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1466;
/* rgb */ color: rgb(47, 20, 102);
/* oklch */ color: oklch(29.0% 0.132 290.7);
Tailwind
colors: {
  custom: {
    50: '#6e5592',
    500: '#2f1466',
    950: '#000000',
  },
}
SCSS
$custom: #2f1466;
$custom-light: #6e5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1466",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 259.756,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28965,
    "c": 0.13213,
    "h": 290.7
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#2F1466
secondary
#7C9D39
accent
#EA3EB1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1466

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

Preview Lab → · Contrast checker → · Palette generator →

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