#2A1753#2A1753

#2A1753 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.103 H 292.7°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2A1753
RGBrgb(42, 23, 83)
HSLhsl(259, 57%, 21%)
HSVhsv(259, 72%, 33%)
CMYKcmyk(49.4%, 72.3%, 0%, 67.5%)
CIE-LABlab(14.00, 25.52, -33.31)
CIE-LCHlch(14.00, 41.96, 307.46°)
OKLaboklab(26.97% 0.0398 -0.0953)
OKLCHoklch(26.97% 0.103 292.7)
XYZxyz(2.8221, 1.7295, 8.3671)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1753 #405317
analogous
#172253 #2A1753 #481753
triadic
#2A1753 #532A17 #17532A
tetradic
#2A1753 #531722 #405317 #175348
square
#2A1753 #531722 #405317 #175348
split-complementary
#2A1753 #534817 #225317
monochromatic
#0C0718 #120A23 #2A1753 #422483 #5A32B3

Accessibility & contrast

On white

15.60
#2A1753 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A1753 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1753
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1753#FFFFFF#000000##FFFFFF
##2A17531.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#1E2532
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1753;
/* rgb */ color: rgb(42, 23, 83);
/* oklch */ color: oklch(27.0% 0.103 292.7);
Tailwind
colors: {
  custom: {
    50: '#685584',
    500: '#2a1753',
    950: '#000000',
  },
}
SCSS
$custom: #2a1753;
$custom-light: #685584;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1753",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 83
  },
  "hsl": {
    "h": 259,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26969,
    "c": 0.10328,
    "h": 292.7
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#2A1753
secondary
#718A3C
accent
#E048B0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1753

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

Preview Lab → · Contrast checker → · Palette generator →

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