#2A1852#2A1852

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

Color values

HEX#2A1852
RGBrgb(42, 24, 82)
HSLhsl(259, 55%, 21%)
HSVhsv(259, 71%, 32%)
CMYKcmyk(48.8%, 70.7%, 0%, 67.8%)
CIE-LABlab(14.14, 24.57, -32.39)
CIE-LCHlch(14.14, 40.66, 307.18°)
OKLaboklab(27.05% 0.0387 -0.0926)
OKLCHoklch(27.05% 0.1 292.7)
XYZxyz(2.8041, 1.7546, 8.1719)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1852 #405218
analogous
#182352 #2A1852 #471852
triadic
#2A1852 #522A18 #18522A
tetradic
#2A1852 #521823 #405218 #185247
square
#2A1852 #521823 #405218 #185247
split-complementary
#2A1852 #524718 #235218
monochromatic
#0C0718 #120A23 #2A1852 #422681 #5A34B1

Accessibility & contrast

On white

15.54
#2A1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1852
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1852#FFFFFF#000000##FFFFFF
##2A18521.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#1E2632
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1852;
/* rgb */ color: rgb(42, 24, 82);
/* oklch */ color: oklch(27.0% 0.100 292.7);
Tailwind
colors: {
  custom: {
    50: '#685683',
    500: '#2a1852',
    950: '#000000',
  },
}
SCSS
$custom: #2a1852;
$custom-light: #685683;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1852",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 258.621,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27046,
    "c": 0.10038,
    "h": 292.7
  },
  "luminance": 0.01755
}

Semantic roles & 50–950 ramp

primary
#2A1852
secondary
#71893D
accent
#DE4AB0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1852

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

Preview Lab → · Contrast checker → · Palette generator →

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