#2A0D58#2A0D58

#2A0D58 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.122 H 293.4°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2A0D58
RGBrgb(42, 13, 88)
HSLhsl(263, 74%, 20%)
HSVhsv(263, 85%, 35%)
CMYKcmyk(52.3%, 85.2%, 0%, 65.5%)
CIE-LABlab(12.51, 32.62, -39.13)
CIE-LCHlch(12.51, 50.95, 309.82°)
OKLaboklab(26.07% 0.0487 -0.1123)
OKLCHoklch(26.07% 0.122 293.4)
XYZxyz(2.8597, 1.4846, 9.3665)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0D58 #3B580D
analogous
#0D1658 #2A0D58 #500D58
triadic
#2A0D58 #582A0D #0D582A
tetradic
#2A0D58 #580D16 #3B580D #0D5850
square
#2A0D58 #580D16 #3B580D #0D5850
split-complementary
#2A0D58 #58500D #16580D
monochromatic
#0D041B #110523 #2A0D58 #43158D #5D1DC3

Accessibility & contrast

On white

16.19
#2A0D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A0D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0D58
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0D58#FFFFFF#000000##FFFFFF
##2A0D581.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#1C2233
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a0d58;
/* rgb */ color: rgb(42, 13, 88);
/* oklch */ color: oklch(26.1% 0.122 293.4);
Tailwind
colors: {
  custom: {
    50: '#6a5088',
    500: '#2a0d58',
    950: '#000000',
  },
}
SCSS
$custom: #2a0d58;
$custom-light: #6a5088;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0d58",
  "rgb": {
    "r": 42,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 263.2,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26066,
    "c": 0.12243,
    "h": 293.4
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#2A0D58
secondary
#6C932E
accent
#F137A9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0D58

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

Preview Lab → · Contrast checker → · Palette generator →

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