#2A0749#2A0749

#2A0749 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.111 H 302.3°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#2A0749
RGBrgb(42, 7, 73)
HSLhsl(272, 83%, 16%)
HSVhsv(272, 90%, 29%)
CMYKcmyk(42.5%, 90.4%, 0%, 71.4%)
CIE-LABlab(9.99, 31.16, -32.95)
CIE-LCHlch(9.99, 45.35, 313.40°)
OKLaboklab(23.84% 0.0594 -0.0941)
OKLCHoklch(23.84% 0.111 302.3)
XYZxyz(2.2331, 1.1252, 6.4016)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0749 #264907
analogous
#090749 #2A0749 #490747
triadic
#2A0749 #492A07 #07492A
tetradic
#2A0749 #490907 #264907 #074749
square
#2A0749 #490907 #264907 #074749
split-complementary
#2A0749 #474907 #074909
monochromatic
#10031C #10031C #2A0749 #4A0C81 #6A12B9

Accessibility & contrast

On white

17.14
#2A0749 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0749 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0749
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0749#FFFFFF#000000##FFFFFF
##2A07491.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4B
Deuteranopia (green-blind)
#001B48
Tritanopia (blue-blind)
#231929
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0749;
/* rgb */ color: rgb(42, 7, 73);
/* oklch */ color: oklch(23.8% 0.111 302.3);
Tailwind
colors: {
  custom: {
    50: '#684c7c',
    500: '#2a0749',
    950: '#000000',
  },
}
SCSS
$custom: #2a0749;
$custom-light: #684c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0749",
  "rgb": {
    "r": 42,
    "g": 7,
    "b": 73
  },
  "hsl": {
    "h": 271.818,
    "s": 82.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23842,
    "c": 0.11132,
    "h": 302.3
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

primary
#2A0749
secondary
#538824
accent
#F92F8E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2A0749

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

Preview Lab → · Contrast checker → · Palette generator →

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