#2A1853#2A1853

#2A1853 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.102 H 292.3°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2A1853
RGBrgb(42, 24, 83)
HSLhsl(258, 55%, 21%)
HSVhsv(258, 71%, 33%)
CMYKcmyk(49.4%, 71.1%, 0%, 67.5%)
CIE-LABlab(14.23, 24.89, -32.93)
CIE-LCHlch(14.23, 41.28, 307.09°)
OKLaboklab(27.14% 0.0386 -0.0942)
OKLCHoklch(27.14% 0.102 292.3)
XYZxyz(2.8424, 1.7700, 8.3738)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1853 #415318
analogous
#182353 #2A1853 #471853
triadic
#2A1853 #532A18 #18532A
tetradic
#2A1853 #531823 #415318 #185347
square
#2A1853 #531823 #415318 #185347
split-complementary
#2A1853 #534718 #235318
monochromatic
#0C0718 #120A24 #2A1853 #422682 #5A33B2

Accessibility & contrast

On white

15.51
#2A1853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1853
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1853#FFFFFF#000000##FFFFFF
##2A18531.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#1E2633
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1853;
/* rgb */ color: rgb(42, 24, 83);
/* oklch */ color: oklch(27.1% 0.102 292.3);
Tailwind
colors: {
  custom: {
    50: '#685684',
    500: '#2a1853',
    950: '#000000',
  },
}
SCSS
$custom: #2a1853;
$custom-light: #685684;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1853",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 83
  },
  "hsl": {
    "h": 258.305,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27136,
    "c": 0.10179,
    "h": 292.3
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#2A1853
secondary
#728A3D
accent
#DE49B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1853

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

Preview Lab → · Contrast checker → · Palette generator →

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