#2F1A88#2F1A88

#2F1A88 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.168 H 281.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2F1A88
RGBrgb(47, 26, 136)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(65.4%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.52, 41.50, -57.13)
CIE-LCHlch(20.52, 70.61, 306.00°)
OKLaboklab(33.34% 0.0319 -0.1649)
OKLCHoklch(33.34% 0.168 281)
XYZxyz(5.9842, 3.1202, 23.5747)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A88 #73881A
analogous
#1A3C88 #2F1A88 #661A88
triadic
#2F1A88 #882F1A #1A882F
tetradic
#2F1A88 #881A3C #73881A #1A8866
square
#2F1A88 #881A3C #73881A #1A8866
split-complementary
#2F1A88 #88661A #3C881A
monochromatic
#0B0621 #1D1055 #2F1A88 #4124BB #5F42DB

Accessibility & contrast

On white

12.93
#2F1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A88
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A88#FFFFFF#000000##FFFFFF
##2F1A881.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1a88;
/* rgb */ color: rgb(47, 26, 136);
/* oklch */ color: oklch(33.3% 0.168 281.0);
Tailwind
colors: {
  custom: {
    50: '#755aac',
    500: '#2f1a88',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a88;
$custom-light: #755aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a88",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 251.455,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33339,
    "c": 0.16794,
    "h": 281
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#2F1A88
secondary
#A4BB43
accent
#EB3DCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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