#2F1B88#2F1B88

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

Color values

HEX#2F1B88
RGBrgb(47, 27, 136)
HSLhsl(251, 67%, 32%)
HSVhsv(251, 80%, 53%)
CMYKcmyk(65.4%, 80.1%, 0%, 46.7%)
CIE-LABlab(20.69, 41.00, -56.84)
CIE-LCHlch(20.69, 70.08, 305.80°)
OKLaboklab(33.46% 0.0313 -0.164)
OKLCHoklch(33.46% 0.167 280.8)
XYZxyz(6.0068, 3.1653, 23.5822)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B88 #74881B
analogous
#1B3E88 #2F1B88 #661B88
triadic
#2F1B88 #882F1B #1B882F
tetradic
#2F1B88 #881B3E #74881B #1B8866
square
#2F1B88 #881B3E #74881B #1B8866
split-complementary
#2F1B88 #88661B #3E881B
monochromatic
#0C0722 #1D1155 #2F1B88 #4125BB #5F44DA

Accessibility & contrast

On white

12.86
#2F1B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F1B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B88
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B88#FFFFFF#000000##FFFFFF
##2F1B881.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1b88;
/* rgb */ color: rgb(47, 27, 136);
/* oklch */ color: oklch(33.5% 0.167 280.8);
Tailwind
colors: {
  custom: {
    50: '#755bac',
    500: '#2f1b88',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b88;
$custom-light: #755bac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b88",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 251.009,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33461,
    "c": 0.16701,
    "h": 280.8
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#2F1B88
secondary
#A5BB44
accent
#EA3ECA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B88

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

Preview Lab → · Contrast checker → · Palette generator →

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