#2A0F76#2A0F76

#2A0F76 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.6% C 0.157 H 283.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2A0F76
RGBrgb(42, 15, 118)
HSLhsl(256, 77%, 26%)
HSVhsv(256, 87%, 46%)
CMYKcmyk(64.4%, 87.3%, 0%, 53.7%)
CIE-LABlab(16.21, 40.61, -52.82)
CIE-LCHlch(16.21, 66.63, 307.55°)
OKLaboklab(29.63% 0.036 -0.1523)
OKLCHoklch(29.63% 0.157 283.3)
XYZxyz(4.3947, 2.1416, 17.3178)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F76 #5B760F
analogous
#0F2776 #2A0F76 #5D0F76
triadic
#2A0F76 #762A0F #0F762A
tetradic
#2A0F76 #760F27 #5B760F #0F765D
square
#2A0F76 #760F27 #5B760F #0F765D
split-complementary
#2A0F76 #765D0F #27760F
monochromatic
#0A031B #170840 #2A0F76 #3D16AC #511DE2

Accessibility & contrast

On white

14.70
#2A0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F76
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F76#FFFFFF#000000##FFFFFF
##2A0F761.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a0f76;
/* rgb */ color: rgb(42, 15, 118);
/* oklch */ color: oklch(29.6% 0.157 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f539f',
    500: '#2a0f76',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f76;
$custom-light: #6f539f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f76",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 255.728,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29634,
    "c": 0.15651,
    "h": 283.3
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#2A0F76
secondary
#8DAD33
accent
#F434C2
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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