#2A1348#2A1348

#2A1348 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.094 H 299.5°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1348
RGBrgb(42, 19, 72)
HSLhsl(266, 58%, 18%)
HSVhsv(266, 74%, 28%)
CMYKcmyk(41.7%, 73.6%, 0%, 71.8%)
CIE-LABlab(12.13, 24.57, -28.78)
CIE-LCHlch(12.13, 37.84, 310.48°)
OKLaboklab(25.32% 0.0464 -0.082)
OKLCHoklch(25.32% 0.094 299.5)
XYZxyz(2.3571, 1.4258, 6.2807)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1348 #314813
analogous
#131648 #2A1348 #441348
triadic
#2A1348 #482A13 #13482A
tetradic
#2A1348 #481316 #314813 #134844
square
#2A1348 #481316 #314813 #134844
split-complementary
#2A1348 #484413 #164813
monochromatic
#0E0618 #0E0618 #2A1348 #462078 #622DA9

Accessibility & contrast

On white

16.34
#2A1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1348
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1348#FFFFFF#000000##FFFFFF
##2A13481.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#231F2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1348;
/* rgb */ color: rgb(42, 19, 72);
/* oklch */ color: oklch(25.3% 0.094 299.5);
Tailwind
colors: {
  custom: {
    50: '#67527b',
    500: '#2a1348',
    950: '#000000',
  },
}
SCSS
$custom: #2a1348;
$custom-light: #67527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1348",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 266.038,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25321,
    "c": 0.09419,
    "h": 299.5
  },
  "luminance": 0.01426
}

Semantic roles & 50–950 ramp

primary
#2A1348
secondary
#608136
accent
#E1469E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A1348

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

Preview Lab → · Contrast checker → · Palette generator →

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