#2A2155#2A2155

#2A2155 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.091 H 287.3°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2A2155
RGBrgb(42, 33, 85)
HSLhsl(250, 44%, 23%)
HSVhsv(250, 61%, 33%)
CMYKcmyk(50.6%, 61.2%, 0%, 66.7%)
CIE-LABlab(16.68, 19.54, -30.32)
CIE-LCHlch(16.68, 36.07, 302.80°)
OKLaboklab(28.98% 0.0269 -0.0865)
OKLCHoklch(28.98% 0.091 287.3)
XYZxyz(3.1379, 2.2357, 8.8588)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2155 #4C5521
analogous
#213255 #2A2155 #442155
triadic
#2A2155 #552A21 #21552A
tetradic
#2A2155 #552132 #4C5521 #215544
square
#2A2155 #552132 #4C5521 #215544
split-complementary
#2A2155 #554421 #325521
monochromatic
#0B0916 #141029 #2A2155 #403281 #5643AD

Accessibility & contrast

On white

14.51
#2A2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2155
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2155#FFFFFF#000000##FFFFFF
##2A21551.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032A57
Deuteranopia (green-blind)
#032854
Tritanopia (blue-blind)
#1C2D37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2155;
/* rgb */ color: rgb(42, 33, 85);
/* oklch */ color: oklch(29.0% 0.091 287.3);
Tailwind
colors: {
  custom: {
    50: '#675c85',
    500: '#2a2155',
    950: '#000000',
  },
}
SCSS
$custom: #2a2155;
$custom-light: #675c85;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2155",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 250.385,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28978,
    "c": 0.09059,
    "h": 287.3
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#2A2155
secondary
#7E8949
accent
#D454BE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2A2155

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

Preview Lab → · Contrast checker → · Palette generator →

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