#2F1C8A#2F1C8A

#2F1C8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.169 H 280.3°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2F1C8A
RGBrgb(47, 28, 138)
HSLhsl(250, 66%, 33%)
HSVhsv(250, 80%, 54%)
CMYKcmyk(65.9%, 79.7%, 0%, 45.9%)
CIE-LABlab(21.09, 41.11, -57.44)
CIE-LCHlch(21.09, 70.63, 305.59°)
OKLaboklab(33.8% 0.0301 -0.1658)
OKLCHoklch(33.8% 0.169 280.3)
XYZxyz(6.1735, 3.2693, 24.3455)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C8A #778A1C
analogous
#1C408A #2F1C8A #661C8A
triadic
#2F1C8A #8A2F1C #1C8A2F
tetradic
#2F1C8A #8A1C40 #778A1C #1C8A66
square
#2F1C8A #8A1C40 #778A1C #1C8A66
split-complementary
#2F1C8A #8A661C #408A1C
monochromatic
#0C0724 #1E1257 #2F1C8A #4026BD #6047DA

Accessibility & contrast

On white

12.70
#2F1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C8A
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C8A#FFFFFF#000000##FFFFFF
##2F1C8A1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1c8a;
/* rgb */ color: rgb(47, 28, 138);
/* oklch */ color: oklch(33.8% 0.169 280.3);
Tailwind
colors: {
  custom: {
    50: '#755cad',
    500: '#2f1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c8a;
$custom-light: #755cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c8a",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 250.364,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33804,
    "c": 0.16852,
    "h": 280.3
  },
  "luminance": 0.0327
}

Semantic roles & 50–950 ramp

primary
#2F1C8A
secondary
#A7BB46
accent
#E93FCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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