#2A1043#2A1043

#2A1043 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.092 H 303.6°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#2A1043
RGBrgb(42, 16, 67)
HSLhsl(271, 61%, 16%)
HSVhsv(271, 76%, 26%)
CMYKcmyk(37.3%, 76.1%, 0%, 73.7%)
CIE-LABlab(11.05, 24.88, -27.02)
CIE-LCHlch(11.05, 36.73, 312.63°)
OKLaboklab(24.41% 0.051 -0.0768)
OKLCHoklch(24.41% 0.092 303.6)
XYZxyz(2.1530, 1.2681, 5.4404)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1043 #294310
analogous
#111043 #2A1043 #431043
triadic
#2A1043 #432A10 #10432A
tetradic
#2A1043 #431110 #294310 #104343
square
#2A1043 #431110 #294310 #104343
split-complementary
#2A1043 #434310 #104311
monochromatic
#0F0619 #0F0619 #2A1043 #491C74 #6828A6

Accessibility & contrast

On white

16.75
#2A1043 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A1043 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1043
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1043#FFFFFF#000000##FFFFFF
##2A10431.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D45
Deuteranopia (green-blind)
#011D42
Tritanopia (blue-blind)
#251C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a1043;
/* rgb */ color: rgb(42, 16, 67);
/* oklch */ color: oklch(24.4% 0.092 303.6);
Tailwind
colors: {
  custom: {
    50: '#665077',
    500: '#2a1043',
    950: '#000000',
  },
}
SCSS
$custom: #2a1043;
$custom-light: #665077;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1043",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 67
  },
  "hsl": {
    "h": 270.588,
    "s": 61.446,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24412,
    "c": 0.0922,
    "h": 303.6
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#2A1043
secondary
#577D32
accent
#E54392
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1043

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

Preview Lab → · Contrast checker → · Palette generator →

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