#2A0B45#2A0B45

#2A0B45 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.102 H 303.8°. Best body text is #FFFFFF at 17.04:1 contrast (WCAG AA passes).

Color values

HEX#2A0B45
RGBrgb(42, 11, 69)
HSLhsl(272, 73%, 16%)
HSVhsv(272, 84%, 27%)
CMYKcmyk(39.1%, 84.1%, 0%, 72.9%)
CIE-LABlab(10.27, 28.14, -29.70)
CIE-LCHlch(10.27, 40.92, 313.46°)
OKLaboklab(23.91% 0.0566 -0.0846)
OKLCHoklch(23.91% 0.102 303.8)
XYZxyz(2.1484, 1.1613, 5.7400)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B45 #26450B
analogous
#0D0B45 #2A0B45 #450B43
triadic
#2A0B45 #452A0B #0B452A
tetradic
#2A0B45 #450D0B #26450B #0B4345
square
#2A0B45 #450D0B #26450B #0B4345
split-complementary
#2A0B45 #43450B #0B450D
monochromatic
#10041A #10041A #2A0B45 #4A137A #6A1CAF

Accessibility & contrast

On white

17.04
#2A0B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A0B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0B45
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B45#FFFFFF#000000##FFFFFF
##2A0B451.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#251A27
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0b45;
/* rgb */ color: rgb(42, 11, 69);
/* oklch */ color: oklch(23.9% 0.102 303.8);
Tailwind
colors: {
  custom: {
    50: '#674d79',
    500: '#2a0b45',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b45;
$custom-light: #674d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b45",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 272.069,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23912,
    "c": 0.10181,
    "h": 303.8
  },
  "luminance": 0.01161
}

Semantic roles & 50–950 ramp

primary
#2A0B45
secondary
#53812A
accent
#EF398E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0B45

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

Preview Lab → · Contrast checker → · Palette generator →

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