#2F1C8B#2F1C8B

#2F1C8B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.170 H 280.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2F1C8B
RGBrgb(47, 28, 139)
HSLhsl(250, 66%, 33%)
HSVhsv(250, 80%, 55%)
CMYKcmyk(66.2%, 79.9%, 0%, 45.5%)
CIE-LABlab(21.20, 41.42, -57.88)
CIE-LCHlch(21.20, 71.18, 305.59°)
OKLaboklab(33.91% 0.0299 -0.1671)
OKLCHoklch(33.91% 0.17 280.1)
XYZxyz(6.2463, 3.2984, 24.7286)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C8B #788B1C
analogous
#1C418B #2F1C8B #661C8B
triadic
#2F1C8B #8B2F1C #1C8B2F
tetradic
#2F1C8B #8B1C41 #788B1C #1C8B66
square
#2F1C8B #8B1C41 #788B1C #1C8B66
split-complementary
#2F1C8B #8B661C #418B1C
monochromatic
#0D0725 #1E1258 #2F1C8B #4026BE #6047DA

Accessibility & contrast

On white

12.65
#2F1C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F1C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C8B
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C8B#FFFFFF#000000##FFFFFF
##2F1C8B1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1c8b;
/* rgb */ color: rgb(47, 28, 139);
/* oklch */ color: oklch(33.9% 0.170 280.1);
Tailwind
colors: {
  custom: {
    50: '#755cae',
    500: '#2f1c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c8b;
$custom-light: #755cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c8b",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 250.27,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33913,
    "c": 0.16974,
    "h": 280.1
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#2F1C8B
secondary
#A8BC47
accent
#E93ECC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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