#2A0C47#2A0C47

#2A0C47 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.103 H 302.3°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#2A0C47
RGBrgb(42, 12, 71)
HSLhsl(271, 71%, 16%)
HSVhsv(271, 83%, 28%)
CMYKcmyk(40.8%, 83.1%, 0%, 72.2%)
CIE-LABlab(10.63, 28.21, -30.51)
CIE-LCHlch(10.63, 41.55, 312.75°)
OKLaboklab(24.23% 0.055 -0.087)
OKLCHoklch(24.23% 0.103 302.3)
XYZxyz(2.2234, 1.2101, 6.0765)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C47 #29470C
analogous
#0D0C47 #2A0C47 #470C47
triadic
#2A0C47 #472A0C #0C472A
tetradic
#2A0C47 #470D0C #29470C #0C4747
square
#2A0C47 #470D0C #29470C #0C4747
split-complementary
#2A0C47 #47470C #0C470D
monochromatic
#0F041A #0F041A #2A0C47 #49157B #681EB0

Accessibility & contrast

On white

16.91
#2A0C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C47
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C47#FFFFFF#000000##FFFFFF
##2A0C471.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001C46
Tritanopia (blue-blind)
#241B29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0c47;
/* rgb */ color: rgb(42, 12, 71);
/* oklch */ color: oklch(24.2% 0.103 302.3);
Tailwind
colors: {
  custom: {
    50: '#674e7b',
    500: '#2a0c47',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c47;
$custom-light: #674e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c47",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 270.508,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24227,
    "c": 0.10294,
    "h": 302.3
  },
  "luminance": 0.0121
}

Semantic roles & 50–950 ramp

primary
#2A0C47
secondary
#57832C
accent
#EE3A92
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A0C47

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

Preview Lab → · Contrast checker → · Palette generator →

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