#2F1A7B#2F1A7B

#2F1A7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.152 H 283.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#2F1A7B
RGBrgb(47, 26, 123)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 48%)
CMYKcmyk(61.8%, 78.9%, 0%, 51.8%)
CIE-LABlab(19.11, 37.45, -51.23)
CIE-LCHlch(19.11, 63.46, 306.16°)
OKLaboklab(31.93% 0.0358 -0.1477)
OKLCHoklch(31.93% 0.152 283.6)
XYZxyz(5.1157, 2.7728, 19.0007)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A7B #667B1A
analogous
#1A357B #2F1A7B #601A7B
triadic
#2F1A7B #7B2F1A #1A7B2F
tetradic
#2F1A7B #7B1A35 #667B1A #1A7B60
square
#2F1A7B #7B1A35 #667B1A #1A7B60
split-complementary
#2F1A7B #7B601A #357B1A
monochromatic
#0A0519 #1C0F48 #2F1A7B #4225AE #5C3AD5

Accessibility & contrast

On white

13.51
#2F1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A7B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A7B#FFFFFF#000000##FFFFFF
##2F1A7B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1a7b;
/* rgb */ color: rgb(47, 26, 123);
/* oklch */ color: oklch(31.9% 0.152 283.6);
Tailwind
colors: {
  custom: {
    50: '#7259a2',
    500: '#2f1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a7b;
$custom-light: #7259a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a7b",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 252.99,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31934,
    "c": 0.15193,
    "h": 283.6
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#2F1A7B
secondary
#98AF42
accent
#E840C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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