#2A0A45#2A0A45

#2A0A45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.103 H 304.0°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#2A0A45
RGBrgb(42, 10, 69)
HSLhsl(273, 75%, 15%)
HSVhsv(273, 86%, 27%)
CMYKcmyk(39.1%, 85.5%, 0%, 72.9%)
CIE-LABlab(10.10, 28.63, -29.98)
CIE-LCHlch(10.10, 41.45, 313.68°)
OKLaboklab(23.79% 0.0577 -0.0854)
OKLCHoklch(23.79% 0.103 304)
XYZxyz(2.1373, 1.1390, 5.7363)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A45 #25450A
analogous
#0C0A45 #2A0A45 #450A42
triadic
#2A0A45 #452A0A #0A452A
tetradic
#2A0A45 #450C0A #25450A #0A4245
square
#2A0A45 #450C0A #25450A #0A4245
split-complementary
#2A0A45 #42450A #0A450C
monochromatic
#10041B #10041B #2A0A45 #4B127A #6B19B0

Accessibility & contrast

On white

17.10
#2A0A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0A45
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A45#FFFFFF#000000##FFFFFF
##2A0A451.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0a45;
/* rgb */ color: rgb(42, 10, 69);
/* oklch */ color: oklch(23.8% 0.103 304.0);
Tailwind
colors: {
  custom: {
    50: '#674d79',
    500: '#2a0a45',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a45;
$custom-light: #674d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a45",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 272.542,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23794,
    "c": 0.10306,
    "h": 304
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#2A0A45
secondary
#528229
accent
#F1368C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0A45

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

Preview Lab → · Contrast checker → · Palette generator →

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