#2F1C87#2F1C87

#2F1C87 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.165 H 280.8°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2F1C87
RGBrgb(47, 28, 135)
HSLhsl(251, 66%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(65.2%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.77, 40.16, -56.10)
CIE-LCHlch(20.77, 68.99, 305.60°)
OKLaboklab(33.48% 0.031 -0.1619)
OKLCHoklch(33.48% 0.165 280.8)
XYZxyz(5.9593, 3.1837, 23.2174)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C87 #74871C
analogous
#1C3F87 #2F1C87 #651C87
triadic
#2F1C87 #872F1C #1C872F
tetradic
#2F1C87 #871C3F #74871C #1C8765
square
#2F1C87 #871C3F #74871C #1C8765
split-complementary
#2F1C87 #87651C #3F871C
monochromatic
#0C0722 #1D1154 #2F1C87 #4127BA #5F45D8

Accessibility & contrast

On white

12.83
#2F1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C87
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C87#FFFFFF#000000##FFFFFF
##2F1C871.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1c87;
/* rgb */ color: rgb(47, 28, 135);
/* oklch */ color: oklch(33.5% 0.165 280.8);
Tailwind
colors: {
  custom: {
    50: '#745bab',
    500: '#2f1c87',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c87;
$custom-light: #745bab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c87",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 250.654,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33478,
    "c": 0.16483,
    "h": 280.8
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#2F1C87
secondary
#A5BA45
accent
#E93FCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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