#2A0239#2A0239

#2A0239 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.6% C 0.102 H 314.4°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#2A0239
RGBrgb(42, 2, 57)
HSLhsl(284, 93%, 12%)
HSVhsv(284, 96%, 22%)
CMYKcmyk(26.3%, 96.5%, 0%, 77.6%)
CIE-LABlab(7.51, 29.82, -25.62)
CIE-LCHlch(7.51, 39.31, 319.33°)
OKLaboklab(21.62% 0.0712 -0.0726)
OKLCHoklch(21.62% 0.102 314.4)
XYZxyz(1.7149, 0.8311, 3.9402)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0239 #113902
analogous
#0F0239 #2A0239 #39022D
triadic
#2A0239 #392A02 #02392A
tetradic
#2A0239 #390F02 #113902 #022D39
square
#2A0239 #390F02 #113902 #022D39
split-complementary
#2A0239 #2D3902 #02390F
monochromatic
#16011E #16011E #2A0239 #560474 #8106AF

Accessibility & contrast

On white

18.01
#2A0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0239
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0239#FFFFFF#000000##FFFFFF
##2A02391.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#290F1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a0239;
/* rgb */ color: rgb(42, 2, 57);
/* oklch */ color: oklch(21.6% 0.102 314.4);
Tailwind
colors: {
  custom: {
    50: '#664870',
    500: '#2a0239',
    950: '#000000',
  },
}
SCSS
$custom: #2a0239;
$custom-light: #664870;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0239",
  "rgb": {
    "r": 42,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 283.636,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21624,
    "c": 0.10165,
    "h": 314.4
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#2A0239
secondary
#357D1A
accent
#FF2963
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0239

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

Preview Lab → · Contrast checker → · Palette generator →

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