#2A1247#2A1247

#2A1247 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.094 H 300.5°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#2A1247
RGBrgb(42, 18, 71)
HSLhsl(267, 60%, 17%)
HSVhsv(267, 75%, 28%)
CMYKcmyk(40.8%, 74.6%, 0%, 72.2%)
CIE-LABlab(11.82, 24.87, -28.58)
CIE-LCHlch(11.82, 37.88, 311.03°)
OKLaboklab(25.07% 0.0478 -0.0814)
OKLCHoklch(25.07% 0.094 300.5)
XYZxyz(2.3082, 1.3798, 6.1047)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1247 #2F4712
analogous
#121447 #2A1247 #451247
triadic
#2A1247 #472A12 #12472A
tetradic
#2A1247 #471214 #2F4712 #124745
square
#2A1247 #471214 #2F4712 #124745
split-complementary
#2A1247 #474512 #144712
monochromatic
#0E0618 #0E0618 #2A1247 #471E78 #642BA9

Accessibility & contrast

On white

16.46
#2A1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A1247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1247
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1247#FFFFFF#000000##FFFFFF
##2A12471.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#241E2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1247;
/* rgb */ color: rgb(42, 18, 71);
/* oklch */ color: oklch(25.1% 0.094 300.5);
Tailwind
colors: {
  custom: {
    50: '#67527b',
    500: '#2a1247',
    950: '#000000',
  },
}
SCSS
$custom: #2a1247;
$custom-light: #67527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1247",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 267.17,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25074,
    "c": 0.0944,
    "h": 300.5
  },
  "luminance": 0.0138
}

Semantic roles & 50–950 ramp

primary
#2A1247
secondary
#5E8035
accent
#E3459B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1247

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

Preview Lab → · Contrast checker → · Palette generator →

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