#2A1345#2A1345

#2A1345 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.090 H 301.3°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2A1345
RGBrgb(42, 19, 69)
HSLhsl(268, 57%, 17%)
HSVhsv(268, 72%, 27%)
CMYKcmyk(39.1%, 72.5%, 0%, 72.9%)
CIE-LABlab(11.87, 23.66, -27.10)
CIE-LCHlch(11.87, 35.97, 311.13°)
OKLaboklab(25.06% 0.0468 -0.077)
OKLCHoklch(25.06% 0.09 301.3)
XYZxyz(2.2616, 1.3876, 5.7778)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1345 #2E4513
analogous
#131545 #2A1345 #431345
triadic
#2A1345 #452A13 #13452A
tetradic
#2A1345 #451315 #2E4513 #134543
square
#2A1345 #451315 #2E4513 #134543
split-complementary
#2A1345 #454313 #154513
monochromatic
#0F0718 #0F0718 #2A1345 #472075 #642DA5

Accessibility & contrast

On white

16.44
#2A1345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A1345 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1345
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1345#FFFFFF#000000##FFFFFF
##2A13451.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#021F44
Tritanopia (blue-blind)
#241E2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a1345;
/* rgb */ color: rgb(42, 19, 69);
/* oklch */ color: oklch(25.1% 0.090 301.3);
Tailwind
colors: {
  custom: {
    50: '#665279',
    500: '#2a1345',
    950: '#000000',
  },
}
SCSS
$custom: #2a1345;
$custom-light: #665279;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1345",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 267.6,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25058,
    "c": 0.0901,
    "h": 301.3
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#2A1345
secondary
#5D7E36
accent
#E0489A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1345

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

Preview Lab → · Contrast checker → · Palette generator →

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