#2A0230#2A0230

#2A0230 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.8% C 0.093 H 322.2°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#2A0230
RGBrgb(42, 2, 48)
HSLhsl(292, 92%, 10%)
HSVhsv(292, 96%, 19%)
CMYKcmyk(12.5%, 95.8%, 0%, 81.2%)
CIE-LABlab(6.77, 27.56, -20.20)
CIE-LCHlch(6.77, 34.17, 323.76°)
OKLaboklab(20.82% 0.0735 -0.057)
OKLCHoklch(20.82% 0.093 322.2)
XYZxyz(1.5100, 0.7491, 2.8608)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0230 #083002
analogous
#130230 #2A0230 #30021F
triadic
#2A0230 #302A02 #02302A
tetradic
#2A0230 #301302 #083002 #021F30
square
#2A0230 #301302 #083002 #021F30
split-complementary
#2A0230 #1F3002 #023013
monochromatic
#1A011D #1A011D #2A0230 #5D046B #9107A6

Accessibility & contrast

On white

18.26
#2A0230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#2A0230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0230
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0230#FFFFFF#000000##FFFFFF
##2A02301.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001231
Deuteranopia (green-blind)
#08172F
Tritanopia (blue-blind)
#2B0A19
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #2a0230;
/* rgb */ color: rgb(42, 2, 48);
/* oklch */ color: oklch(20.8% 0.093 322.2);
Tailwind
colors: {
  custom: {
    50: '#664768',
    500: '#2a0230',
    950: '#000000',
  },
}
SCSS
$custom: #2a0230;
$custom-light: #664768;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0230",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 48
  },
  "hsl": {
    "h": 292.174,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20816,
    "c": 0.09302,
    "h": 322.2
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#2A0230
secondary
#257519
accent
#FF2945
background
#F6F4F6
surface
#EBE6EB
border
#C6C2C6
text
#060006
muted
#7A777A

Preview Lab

Preview with #2A0230

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

Preview Lab → · Contrast checker → · Palette generator →

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