#2F1C8D#2F1C8D

#2F1C8D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.172 H 279.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2F1C8D
RGBrgb(47, 28, 141)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 80%, 55%)
CMYKcmyk(66.7%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.42, 42.05, -58.77)
CIE-LCHlch(21.42, 72.26, 305.58°)
OKLaboklab(34.13% 0.0293 -0.1697)
OKLCHoklch(34.13% 0.172 279.8)
XYZxyz(6.3937, 3.3574, 25.5052)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C8D #7A8D1C
analogous
#1C428D #2F1C8D #671C8D
triadic
#2F1C8D #8D2F1C #1C8D2F
tetradic
#2F1C8D #8D1C42 #7A8D1C #1C8D67
square
#2F1C8D #8D1C42 #7A8D1C #1C8D67
split-complementary
#2F1C8D #8D671C #428D1C
monochromatic
#0D0827 #1E125A #2F1C8D #4026C0 #6149DB

Accessibility & contrast

On white

12.56
#2F1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C8D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C8D#FFFFFF#000000##FFFFFF
##2F1C8D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1c8d;
/* rgb */ color: rgb(47, 28, 141);
/* oklch */ color: oklch(34.1% 0.172 279.8);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#2f1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c8d;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c8d",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 250.088,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34133,
    "c": 0.17218,
    "h": 279.8
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#2F1C8D
secondary
#A9BD48
accent
#EA3ECD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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