#2F1672#2F1672

#2F1672 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.145 H 286.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2F1672
RGBrgb(47, 22, 114)
HSLhsl(256, 68%, 27%)
HSVhsv(256, 81%, 45%)
CMYKcmyk(58.8%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.43, 36.74, -48.22)
CIE-LCHlch(17.43, 60.62, 307.31°)
OKLaboklab(30.47% 0.0414 -0.1388)
OKLCHoklch(30.47% 0.145 286.6)
XYZxyz(4.4956, 2.3928, 16.1413)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1672 #597216
analogous
#162B72 #2F1672 #5D1672
triadic
#2F1672 #722F16 #16722F
tetradic
#2F1672 #72162B #597216 #16725D
square
#2F1672 #72162B #597216 #16725D
split-complementary
#2F1672 #725D16 #2B7216
monochromatic
#0B051A #1A0C3F #2F1672 #4420A5 #5A2CD6

Accessibility & contrast

On white

14.20
#2F1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1672
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1672#FFFFFF#000000##FFFFFF
##2F16721.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#103043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1672;
/* rgb */ color: rgb(47, 22, 114);
/* oklch */ color: oklch(30.5% 0.145 286.6);
Tailwind
colors: {
  custom: {
    50: '#70579c',
    500: '#2f1672',
    950: '#000000',
  },
}
SCSS
$custom: #2f1672;
$custom-light: #70579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1672",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 256.304,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30469,
    "c": 0.14486,
    "h": 286.6
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#2F1672
secondary
#8BA83C
accent
#EB3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1672

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

Preview Lab → · Contrast checker → · Palette generator →

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