#2F1D88#2F1D88

#2F1D88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.165 H 280.5°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2F1D88
RGBrgb(47, 29, 136)
HSLhsl(250, 65%, 32%)
HSVhsv(250, 79%, 53%)
CMYKcmyk(65.4%, 78.7%, 0%, 46.7%)
CIE-LABlab(21.06, 39.95, -56.24)
CIE-LCHlch(21.06, 68.99, 305.39°)
OKLaboklab(33.72% 0.0301 -0.1623)
OKLCHoklch(33.72% 0.165 280.5)
XYZxyz(6.0542, 3.2602, 23.5980)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D88 #76881D
analogous
#1D4188 #2F1D88 #641D88
triadic
#2F1D88 #882F1D #1D882F
tetradic
#2F1D88 #881D41 #76881D #1D8864
square
#2F1D88 #881D41 #76881D #1D8864
split-complementary
#2F1D88 #88641D #41881D
monochromatic
#0C0723 #1E1256 #2F1D88 #4028BA #6048D8

Accessibility & contrast

On white

12.71
#2F1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D88
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D88#FFFFFF#000000##FFFFFF
##2F1D881.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1d88;
/* rgb */ color: rgb(47, 29, 136);
/* oklch */ color: oklch(33.7% 0.165 280.5);
Tailwind
colors: {
  custom: {
    50: '#745cac',
    500: '#2f1d88',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d88;
$custom-light: #745cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d88",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 250.093,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.16509,
    "h": 280.5
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#2F1D88
secondary
#A7BA47
accent
#E840CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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