#2F1676#2F1676

#2F1676 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.150 H 285.5°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#2F1676
RGBrgb(47, 22, 118)
HSLhsl(256, 69%, 27%)
HSVhsv(256, 81%, 46%)
CMYKcmyk(60.2%, 81.4%, 0%, 53.7%)
CIE-LABlab(17.85, 37.96, -50.09)
CIE-LCHlch(17.85, 62.85, 307.16°)
OKLaboklab(30.9% 0.0401 -0.1443)
OKLCHoklch(30.9% 0.15 285.5)
XYZxyz(4.7282, 2.4859, 17.3667)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1676 #5D7616
analogous
#162D76 #2F1676 #5F1676
triadic
#2F1676 #762F16 #16762F
tetradic
#2F1676 #76162D #5D7616 #16765F
square
#2F1676 #76162D #5D7616 #16765F
split-complementary
#2F1676 #765F16 #2D7616
monochromatic
#0A051A #1A0C42 #2F1676 #4420AA #5B2ED8

Accessibility & contrast

On white

14.03
#2F1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1676
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1676#FFFFFF#000000##FFFFFF
##2F16761.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#093246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1676;
/* rgb */ color: rgb(47, 22, 118);
/* oklch */ color: oklch(30.9% 0.150 285.5);
Tailwind
colors: {
  custom: {
    50: '#71579f',
    500: '#2f1676',
    950: '#000000',
  },
}
SCSS
$custom: #2f1676;
$custom-light: #71579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1676",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 255.625,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30896,
    "c": 0.14978,
    "h": 285.5
  },
  "luminance": 0.02486
}

Semantic roles & 50–950 ramp

primary
#2F1676
secondary
#8FAC3C
accent
#EB3CBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2F1676

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

Preview Lab → · Contrast checker → · Palette generator →

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