#2A0640#2A0640

#2A0640 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.103 H 308.3°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#2A0640
RGBrgb(42, 6, 64)
HSLhsl(277, 83%, 14%)
HSVhsv(277, 91%, 25%)
CMYKcmyk(34.4%, 90.6%, 0%, 74.9%)
CIE-LABlab(8.93, 29.31, -28.34)
CIE-LCHlch(8.93, 40.77, 315.96°)
OKLaboklab(22.83% 0.0636 -0.0806)
OKLCHoklch(22.83% 0.103 308.3)
XYZxyz(1.9452, 0.9927, 4.9386)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0640 #1C4006
analogous
#0D0640 #2A0640 #400639
triadic
#2A0640 #402A06 #06402A
tetradic
#2A0640 #400D06 #1C4006 #063940
square
#2A0640 #400D06 #1C4006 #063940
split-complementary
#2A0640 #394006 #06400D
monochromatic
#12031C #12031C #2A0640 #4F0B78 #7310B0

Accessibility & contrast

On white

17.52
#2A0640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A0640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0640
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0640#FFFFFF#000000##FFFFFF
##2A06401.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#261523
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a0640;
/* rgb */ color: rgb(42, 6, 64);
/* oklch */ color: oklch(22.8% 0.103 308.3);
Tailwind
colors: {
  custom: {
    50: '#674b75',
    500: '#2a0640',
    950: '#000000',
  },
}
SCSS
$custom: #2a0640;
$custom-light: #674b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0640",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 277.241,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22828,
    "c": 0.10265,
    "h": 308.3
  },
  "luminance": 0.00993
}

Semantic roles & 50–950 ramp

primary
#2A0640
secondary
#468022
accent
#F92F7B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0640

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

Preview Lab → · Contrast checker → · Palette generator →

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