#2A0340#2A0340

#2A0340 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.4% C 0.107 H 309.0°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#2A0340
RGBrgb(42, 3, 64)
HSLhsl(278, 91%, 13%)
HSVhsv(278, 95%, 25%)
CMYKcmyk(34.4%, 95.3%, 0%, 74.9%)
CIE-LABlab(8.37, 30.94, -29.25)
CIE-LCHlch(8.37, 42.58, 316.61°)
OKLaboklab(22.44% 0.0673 -0.0832)
OKLCHoklch(22.44% 0.107 309)
XYZxyz(1.9126, 0.9276, 4.9278)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0340 #194003
analogous
#0C0340 #2A0340 #400337
triadic
#2A0340 #402A03 #03402A
tetradic
#2A0340 #400C03 #194003 #033740
square
#2A0340 #400C03 #194003 #033740
split-complementary
#2A0340 #374003 #03400C
monochromatic
#13011D #13011D #2A0340 #50067A #7708B5

Accessibility & contrast

On white

17.71
#2A0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2A0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0340
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0340#FFFFFF#000000##FFFFFF
##2A03401.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#271322
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0340;
/* rgb */ color: rgb(42, 3, 64);
/* oklch */ color: oklch(22.4% 0.107 309.0);
Tailwind
colors: {
  custom: {
    50: '#674975',
    500: '#2a0340',
    950: '#000000',
  },
}
SCSS
$custom: #2a0340;
$custom-light: #674975;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0340",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 278.361,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22441,
    "c": 0.10703,
    "h": 309
  },
  "luminance": 0.00928
}

Semantic roles & 50–950 ramp

primary
#2A0340
secondary
#41821D
accent
#FF2976
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0340

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

Preview Lab → · Contrast checker → · Palette generator →

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