#2F1772#2F1772

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

Color values

HEX#2F1772
RGBrgb(47, 23, 114)
HSLhsl(256, 66%, 27%)
HSVhsv(256, 80%, 45%)
CMYKcmyk(58.8%, 79.8%, 0%, 55.3%)
CIE-LABlab(17.61, 36.22, -47.92)
CIE-LCHlch(17.61, 60.07, 307.09°)
OKLaboklab(30.6% 0.0406 -0.138)
OKLCHoklch(30.6% 0.144 286.4)
XYZxyz(4.5150, 2.4318, 16.1478)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1772 #5A7217
analogous
#172D72 #2F1772 #5D1772
triadic
#2F1772 #722F17 #17722F
tetradic
#2F1772 #72172D #5A7217 #17725D
square
#2F1772 #72172D #5A7217 #17725D
split-complementary
#2F1772 #725D17 #2D7217
monochromatic
#0A0519 #1A0D3F #2F1772 #4421A5 #5A2ED5

Accessibility & contrast

On white

14.13
#2F1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1772
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1772#FFFFFF#000000##FFFFFF
##2F17721.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#0F3144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1772;
/* rgb */ color: rgb(47, 23, 114);
/* oklch */ color: oklch(30.6% 0.144 286.4);
Tailwind
colors: {
  custom: {
    50: '#70579b',
    500: '#2f1772',
    950: '#000000',
  },
}
SCSS
$custom: #2f1772;
$custom-light: #70579b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1772",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 255.824,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30595,
    "c": 0.14382,
    "h": 286.4
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#2F1772
secondary
#8CA83D
accent
#E93EBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1772

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

Preview Lab → · Contrast checker → · Palette generator →

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