#2F1A92#2F1A92

#2F1A92 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.180 H 279.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1A92
RGBrgb(47, 26, 146)
HSLhsl(251, 70%, 34%)
HSVhsv(251, 82%, 57%)
CMYKcmyk(67.8%, 82.2%, 0%, 42.7%)
CIE-LABlab(21.65, 44.57, -61.51)
CIE-LCHlch(21.65, 75.96, 305.93°)
OKLaboklab(34.45% 0.0288 -0.1776)
OKLCHoklch(34.45% 0.18 279.2)
XYZxyz(6.7283, 3.4179, 27.4937)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A92 #7D921A
analogous
#1A4192 #2F1A92 #6B1A92
triadic
#2F1A92 #922F1A #1A922F
tetradic
#2F1A92 #921A41 #7D921A #1A926B
square
#2F1A92 #921A41 #7D921A #1A926B
split-complementary
#2F1A92 #926B1A #41921A
monochromatic
#0E072A #1E115E #2F1A92 #4023C6 #6248DE

Accessibility & contrast

On white

12.47
#2F1A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F1A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A92
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A92#FFFFFF#000000##FFFFFF
##2F1A921.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003895
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1a92;
/* rgb */ color: rgb(47, 26, 146);
/* oklch */ color: oklch(34.5% 0.180 279.2);
Tailwind
colors: {
  custom: {
    50: '#775bb3',
    500: '#2f1a92',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a92;
$custom-light: #775bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a92",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 146
  },
  "hsl": {
    "h": 250.5,
    "s": 69.767,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34454,
    "c": 0.17993,
    "h": 279.2
  },
  "luminance": 0.03418
}

Semantic roles & 50–950 ramp

primary
#2F1A92
secondary
#ABC048
accent
#ED3BCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A92

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

Preview Lab → · Contrast checker → · Palette generator →

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