#2A043F#2A043F

#2A043F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.5% C 0.105 H 309.4°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#2A043F
RGBrgb(42, 4, 63)
HSLhsl(279, 88%, 13%)
HSVhsv(279, 94%, 25%)
CMYKcmyk(33.3%, 93.7%, 0%, 75.3%)
CIE-LABlab(8.46, 30.14, -28.39)
CIE-LCHlch(8.46, 41.40, 316.71°)
OKLaboklab(22.47% 0.0664 -0.0807)
OKLCHoklch(22.47% 0.105 309.4)
XYZxyz(1.8953, 0.9380, 4.7829)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A043F #193F04
analogous
#0C043F #2A043F #3F0436
triadic
#2A043F #3F2A04 #043F2A
tetradic
#2A043F #3F0C04 #193F04 #04363F
square
#2A043F #3F0C04 #193F04 #04363F
split-complementary
#2A043F #363F04 #043F0C
monochromatic
#13021D #13021D #2A043F #500879 #770BB2

Accessibility & contrast

On white

17.68
#2A043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A043F
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A043F#FFFFFF#000000##FFFFFF
##2A043F1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a043f;
/* rgb */ color: rgb(42, 4, 63);
/* oklch */ color: oklch(22.5% 0.105 309.4);
Tailwind
colors: {
  custom: {
    50: '#674975',
    500: '#2a043f',
    950: '#000000',
  },
}
SCSS
$custom: #2a043f;
$custom-light: #674975;
$custom-dark: #000000;
JSON
{
  "hex": "#2a043f",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 278.644,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22473,
    "c": 0.10451,
    "h": 309.4
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#2A043F
secondary
#41801E
accent
#FE2A75
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A043F

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

Preview Lab → · Contrast checker → · Palette generator →

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