#2F1872#2F1872

#2F1872 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.143 H 286.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2F1872
RGBrgb(47, 24, 114)
HSLhsl(255, 65%, 27%)
HSVhsv(255, 79%, 45%)
CMYKcmyk(58.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(17.79, 35.69, -47.61)
CIE-LCHlch(17.79, 59.51, 306.86°)
OKLaboklab(30.73% 0.0398 -0.1371)
OKLCHoklch(30.73% 0.143 286.2)
XYZxyz(4.5353, 2.4723, 16.1545)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1872 #5B7218
analogous
#182E72 #2F1872 #5C1872
triadic
#2F1872 #722F18 #18722F
tetradic
#2F1872 #72182E #5B7218 #18725C
square
#2F1872 #72182E #5B7218 #18725C
split-complementary
#2F1872 #725C18 #2E7218
monochromatic
#0A0519 #1A0D3F #2F1872 #4423A5 #5A31D4

Accessibility & contrast

On white

14.05
#2F1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1872
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1872#FFFFFF#000000##FFFFFF
##2F18721.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1872;
/* rgb */ color: rgb(47, 24, 114);
/* oklch */ color: oklch(30.7% 0.143 286.2);
Tailwind
colors: {
  custom: {
    50: '#70589b',
    500: '#2f1872',
    950: '#000000',
  },
}
SCSS
$custom: #2f1872;
$custom-light: #70589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1872",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 255.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30725,
    "c": 0.14275,
    "h": 286.2
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#2F1872
secondary
#8DA73E
accent
#E840BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1872

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

Preview Lab → · Contrast checker → · Palette generator →

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