#2A2149#2A2149

#2A2149 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.0% C 0.072 H 291.4°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2A2149
RGBrgb(42, 33, 73)
HSLhsl(254, 38%, 21%)
HSVhsv(254, 55%, 29%)
CMYKcmyk(42.5%, 54.8%, 0%, 71.4%)
CIE-LABlab(15.80, 15.50, -23.56)
CIE-LCHlch(15.80, 28.20, 303.33°)
OKLaboklab(28.05% 0.0262 -0.0666)
OKLCHoklch(28.05% 0.072 291.4)
XYZxyz(2.7010, 2.0609, 6.5575)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2149 #404921
analogous
#212C49 #2A2149 #3E2149
triadic
#2A2149 #492A21 #21492A
tetradic
#2A2149 #49212C #404921 #21493E
square
#2A2149 #49212C #404921 #21493E
split-complementary
#2A2149 #493E21 #2C4921
monochromatic
#0C0A15 #120E1F #2A2149 #423473 #5A479D

Accessibility & contrast

On white

14.87
#2A2149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A2149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2149
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2149#FFFFFF#000000##FFFFFF
##2A21491.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12284A
Deuteranopia (green-blind)
#132748
Tritanopia (blue-blind)
#222931
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a2149;
/* rgb */ color: rgb(42, 33, 73);
/* oklch */ color: oklch(28.0% 0.072 291.4);
Tailwind
colors: {
  custom: {
    50: '#655c7c',
    500: '#2a2149',
    950: '#000000',
  },
}
SCSS
$custom: #2a2149;
$custom-light: #655c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2149",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 73
  },
  "hsl": {
    "h": 253.5,
    "s": 37.736,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28046,
    "c": 0.0716,
    "h": 291.4
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#2A2149
secondary
#717D49
accent
#CE5AB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2A2149

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

Preview Lab → · Contrast checker → · Palette generator →

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