#2A033F#2A033F

#2A033F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.106 H 309.7°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#2A033F
RGBrgb(42, 3, 63)
HSLhsl(279, 91%, 13%)
HSVhsv(279, 95%, 25%)
CMYKcmyk(33.3%, 95.2%, 0%, 75.3%)
CIE-LABlab(8.27, 30.70, -28.70)
CIE-LCHlch(8.27, 42.02, 316.93°)
OKLaboklab(22.34% 0.0677 -0.0816)
OKLCHoklch(22.34% 0.106 309.7)
XYZxyz(1.8844, 0.9163, 4.7793)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A033F #183F03
analogous
#0C033F #2A033F #3F0336
triadic
#2A033F #3F2A03 #033F2A
tetradic
#2A033F #3F0C03 #183F03 #03363F
square
#2A033F #3F0C03 #183F03 #03363F
split-complementary
#2A033F #363F03 #033F0C
monochromatic
#13011D #13011D #2A033F #510679 #7809B4

Accessibility & contrast

On white

17.75
#2A033F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A033F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A033F
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A033F#FFFFFF#000000##FFFFFF
##2A033F1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.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: #2a033f;
/* rgb */ color: rgb(42, 3, 63);
/* oklch */ color: oklch(22.3% 0.106 309.7);
Tailwind
colors: {
  custom: {
    50: '#674975',
    500: '#2a033f',
    950: '#000000',
  },
}
SCSS
$custom: #2a033f;
$custom-light: #674975;
$custom-dark: #000000;
JSON
{
  "hex": "#2a033f",
  "rgb": {
    "r": 42,
    "g": 3,
    "b": 63
  },
  "hsl": {
    "h": 279,
    "s": 90.909,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22342,
    "c": 0.10601,
    "h": 309.7
  },
  "luminance": 0.00916
}

Semantic roles & 50–950 ramp

primary
#2A033F
secondary
#40811D
accent
#FF2974
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A033F

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

Preview Lab → · Contrast checker → · Palette generator →

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