#2F1673#2F1673

#2F1673 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.146 H 286.3°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#2F1673
RGBrgb(47, 22, 115)
HSLhsl(256, 68%, 27%)
HSVhsv(256, 81%, 45%)
CMYKcmyk(59.1%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.53, 37.05, -48.69)
CIE-LCHlch(17.53, 61.18, 307.27°)
OKLaboklab(30.58% 0.0411 -0.1402)
OKLCHoklch(30.58% 0.146 286.3)
XYZxyz(4.5528, 2.4157, 16.4427)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1673 #5A7316
analogous
#162C73 #2F1673 #5E1673
triadic
#2F1673 #732F16 #16732F
tetradic
#2F1673 #73162C #5A7316 #16735E
square
#2F1673 #73162C #5A7316 #16735E
split-complementary
#2F1673 #735E16 #2C7316
monochromatic
#0A051A #1A0C40 #2F1673 #4420A6 #5A2DD7

Accessibility & contrast

On white

14.16
#2F1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1673
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1673#FFFFFF#000000##FFFFFF
##2F16731.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#0E3144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1673;
/* rgb */ color: rgb(47, 22, 115);
/* oklch */ color: oklch(30.6% 0.146 286.3);
Tailwind
colors: {
  custom: {
    50: '#71579c',
    500: '#2f1673',
    950: '#000000',
  },
}
SCSS
$custom: #2f1673;
$custom-light: #71579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1673",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 256.129,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30575,
    "c": 0.14609,
    "h": 286.3
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#2F1673
secondary
#8CA93C
accent
#EB3DBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1673

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

Preview Lab → · Contrast checker → · Palette generator →

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