#2A1854#2A1854

#2A1854 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.103 H 291.9°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1854
RGBrgb(42, 24, 84)
HSLhsl(258, 56%, 21%)
HSVhsv(258, 71%, 33%)
CMYKcmyk(50%, 71.4%, 0%, 67.1%)
CIE-LABlab(14.32, 25.22, -33.47)
CIE-LCHlch(14.32, 41.90, 307.00°)
OKLaboklab(27.23% 0.0385 -0.0958)
OKLCHoklch(27.23% 0.103 291.9)
XYZxyz(2.8813, 1.7855, 8.5786)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1854 #425418
analogous
#182454 #2A1854 #481854
triadic
#2A1854 #542A18 #18542A
tetradic
#2A1854 #541824 #425418 #185448
square
#2A1854 #541824 #425418 #185448
split-complementary
#2A1854 #544818 #245418
monochromatic
#0C0718 #120A24 #2A1854 #422684 #5A33B3

Accessibility & contrast

On white

15.47
#2A1854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1854 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1854
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1854#FFFFFF#000000##FFFFFF
##2A18541.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#1D2633
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1854;
/* rgb */ color: rgb(42, 24, 84);
/* oklch */ color: oklch(27.2% 0.103 291.9);
Tailwind
colors: {
  custom: {
    50: '#685685',
    500: '#2a1854',
    950: '#000000',
  },
}
SCSS
$custom: #2a1854;
$custom-light: #685685;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1854",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 84
  },
  "hsl": {
    "h": 258,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.1032,
    "h": 291.9
  },
  "luminance": 0.01786
}

Semantic roles & 50–950 ramp

primary
#2A1854
secondary
#738B3D
accent
#DF49B2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1854

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

Preview Lab → · Contrast checker → · Palette generator →

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