#2F1C88#2F1C88

#2F1C88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.166 H 280.7°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#2F1C88
RGBrgb(47, 28, 136)
HSLhsl(251, 66%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(65.4%, 79.4%, 0%, 46.7%)
CIE-LABlab(20.87, 40.48, -56.55)
CIE-LCHlch(20.87, 69.54, 305.60°)
OKLaboklab(33.59% 0.0307 -0.1632)
OKLCHoklch(33.59% 0.166 280.7)
XYZxyz(6.0301, 3.2120, 23.5900)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C88 #75881C
analogous
#1C3F88 #2F1C88 #651C88
triadic
#2F1C88 #882F1C #1C882F
tetradic
#2F1C88 #881C3F #75881C #1C8865
square
#2F1C88 #881C3F #75881C #1C8865
split-complementary
#2F1C88 #88651C #3F881C
monochromatic
#0C0722 #1D1255 #2F1C88 #4126BB #5F46D9

Accessibility & contrast

On white

12.79
#2F1C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C88
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C88#FFFFFF#000000##FFFFFF
##2F1C881.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1c88;
/* rgb */ color: rgb(47, 28, 136);
/* oklch */ color: oklch(33.6% 0.166 280.7);
Tailwind
colors: {
  custom: {
    50: '#745bac',
    500: '#2f1c88',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c88;
$custom-light: #745bac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c88",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 250.556,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33587,
    "c": 0.16605,
    "h": 280.7
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1C88

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

Preview Lab → · Contrast checker → · Palette generator →

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