#2A2152#2A2152

#2A2152 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.086 H 288.2°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2A2152
RGBrgb(42, 33, 82)
HSLhsl(251, 43%, 23%)
HSVhsv(251, 60%, 32%)
CMYKcmyk(48.8%, 59.8%, 0%, 67.8%)
CIE-LABlab(16.45, 18.52, -28.66)
CIE-LCHlch(16.45, 34.13, 302.87°)
OKLaboklab(28.74% 0.0269 -0.0816)
OKLCHoklch(28.74% 0.086 288.2)
XYZxyz(3.0213, 2.1890, 8.2443)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2152 #495221
analogous
#213152 #2A2152 #422152
triadic
#2A2152 #522A21 #21522A
tetradic
#2A2152 #522131 #495221 #215242
square
#2A2152 #522131 #495221 #215242
split-complementary
#2A2152 #524221 #315221
monochromatic
#0B0916 #140F26 #2A2152 #40337E #5744A9

Accessibility & contrast

On white

14.61
#2A2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2152
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2152#FFFFFF#000000##FFFFFF
##2A21521.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072A54
Deuteranopia (green-blind)
#082751
Tritanopia (blue-blind)
#1E2C36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2152;
/* rgb */ color: rgb(42, 33, 82);
/* oklch */ color: oklch(28.7% 0.086 288.2);
Tailwind
colors: {
  custom: {
    50: '#675c83',
    500: '#2a2152',
    950: '#000000',
  },
}
SCSS
$custom: #2a2152;
$custom-light: #675c83;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2152",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 251.02,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28735,
    "c": 0.08593,
    "h": 288.2
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#2A2152
secondary
#7B8649
accent
#D255BB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2A2152

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

Preview Lab → · Contrast checker → · Palette generator →

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