#2A0B46#2A0B46

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

Color values

HEX#2A0B46
RGBrgb(42, 11, 70)
HSLhsl(272, 73%, 16%)
HSVhsv(272, 84%, 27%)
CMYKcmyk(40%, 84.3%, 0%, 72.5%)
CIE-LABlab(10.36, 28.42, -30.25)
CIE-LCHlch(10.36, 41.51, 313.22°)
OKLaboklab(24.01% 0.0563 -0.0862)
OKLCHoklch(24.01% 0.103 303.2)
XYZxyz(2.1797, 1.1738, 5.9049)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B46 #27460B
analogous
#0C0B46 #2A0B46 #460B44
triadic
#2A0B46 #462A0B #0B462A
tetradic
#2A0B46 #460C0B #27460B #0B4446
square
#2A0B46 #460C0B #27460B #0B4446
split-complementary
#2A0B46 #44460B #0B460C
monochromatic
#10041A #10041A #2A0B46 #4A137B #691CB0

Accessibility & contrast

On white

17.01
#2A0B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0B46
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B46#FFFFFF#000000##FFFFFF
##2A0B461.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001C45
Tritanopia (blue-blind)
#241A28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0b46;
/* rgb */ color: rgb(42, 11, 70);
/* oklch */ color: oklch(24.0% 0.103 303.2);
Tailwind
colors: {
  custom: {
    50: '#674e7a',
    500: '#2a0b46',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b46;
$custom-light: #674e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b46",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 271.525,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24008,
    "c": 0.10301,
    "h": 303.2
  },
  "luminance": 0.01174
}

Semantic roles & 50–950 ramp

primary
#2A0B46
secondary
#54822A
accent
#F0388F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0B46

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

Preview Lab → · Contrast checker → · Palette generator →

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