#2A0E42#2A0E42

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

Color values

HEX#2A0E42
RGBrgb(42, 14, 66)
HSLhsl(272, 65%, 16%)
HSVhsv(272, 79%, 26%)
CMYKcmyk(36.4%, 78.8%, 0%, 74.1%)
CIE-LABlab(10.56, 25.73, -27.12)
CIE-LCHlch(10.56, 37.38, 313.49°)
OKLaboklab(24.03% 0.0538 -0.0771)
OKLCHoklch(24.03% 0.094 304.9)
XYZxyz(2.0950, 1.1997, 5.2744)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0E42 #26420E
analogous
#100E42 #2A0E42 #420E40
triadic
#2A0E42 #422A0E #0E422A
tetradic
#2A0E42 #42100E #26420E #0E4042
square
#2A0E42 #42100E #26420E #0E4042
split-complementary
#2A0E42 #40420E #0E4210
monochromatic
#100519 #100519 #2A0E42 #4A1974 #6A23A7

Accessibility & contrast

On white

16.94
#2A0E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0E42
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0E42#FFFFFF#000000##FFFFFF
##2A0E421.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#261A26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0e42;
/* rgb */ color: rgb(42, 14, 66);
/* oklch */ color: oklch(24.0% 0.094 304.9);
Tailwind
colors: {
  custom: {
    50: '#664f77',
    500: '#2a0e42',
    950: '#000000',
  },
}
SCSS
$custom: #2a0e42;
$custom-light: #664f77;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0e42",
  "rgb": {
    "r": 42,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 272.308,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2403,
    "c": 0.09397,
    "h": 304.9
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#2A0E42
secondary
#537D2F
accent
#E8408D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0E42

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

Preview Lab → · Contrast checker → · Palette generator →

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