#2A2154#2A2154

#2A2154 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.089 H 287.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2A2154
RGBrgb(42, 33, 84)
HSLhsl(251, 44%, 23%)
HSVhsv(251, 61%, 33%)
CMYKcmyk(50%, 60.7%, 0%, 67.1%)
CIE-LABlab(16.60, 19.20, -29.77)
CIE-LCHlch(16.60, 35.43, 302.82°)
OKLaboklab(28.9% 0.0269 -0.0849)
OKLCHoklch(28.9% 0.089 287.6)
XYZxyz(3.0985, 2.2199, 8.6510)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2154 #4B5421
analogous
#213154 #2A2154 #432154
triadic
#2A2154 #542A21 #21542A
tetradic
#2A2154 #542131 #4B5421 #215443
square
#2A2154 #542131 #4B5421 #215443
split-complementary
#2A2154 #544321 #315421
monochromatic
#0B0916 #141028 #2A2154 #403280 #5644AC

Accessibility & contrast

On white

14.54
#2A2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2154
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2154#FFFFFF#000000##FFFFFF
##2A21541.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052A56
Deuteranopia (green-blind)
#052853
Tritanopia (blue-blind)
#1D2C37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2154;
/* rgb */ color: rgb(42, 33, 84);
/* oklch */ color: oklch(28.9% 0.089 287.6);
Tailwind
colors: {
  custom: {
    50: '#675c84',
    500: '#2a2154',
    950: '#000000',
  },
}
SCSS
$custom: #2a2154;
$custom-light: #675c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2154",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 250.588,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28896,
    "c": 0.08904,
    "h": 287.6
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#2A2154
secondary
#7D8849
accent
#D354BD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2A2154

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

Preview Lab → · Contrast checker → · Palette generator →

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