#2A2153#2A2153

#2A2153 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.087 H 287.9°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#2A2153
RGBrgb(42, 33, 83)
HSLhsl(251, 43%, 23%)
HSVhsv(251, 60%, 33%)
CMYKcmyk(49.4%, 60.2%, 0%, 67.5%)
CIE-LABlab(16.53, 18.86, -29.22)
CIE-LCHlch(16.53, 34.78, 302.84°)
OKLaboklab(28.82% 0.0269 -0.0832)
OKLCHoklch(28.82% 0.087 287.9)
XYZxyz(3.0596, 2.2044, 8.4462)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2153 #4A5321
analogous
#213153 #2A2153 #432153
triadic
#2A2153 #532A21 #21532A
tetradic
#2A2153 #532131 #4A5321 #215343
square
#2A2153 #532131 #4A5321 #215343
split-complementary
#2A2153 #534321 #315321
monochromatic
#0B0916 #141027 #2A2153 #40327F #5644AB

Accessibility & contrast

On white

14.58
#2A2153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2153
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2153#FFFFFF#000000##FFFFFF
##2A21531.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062A55
Deuteranopia (green-blind)
#062852
Tritanopia (blue-blind)
#1D2C36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2153;
/* rgb */ color: rgb(42, 33, 83);
/* oklch */ color: oklch(28.8% 0.087 287.9);
Tailwind
colors: {
  custom: {
    50: '#675c84',
    500: '#2a2153',
    950: '#000000',
  },
}
SCSS
$custom: #2a2153;
$custom-light: #675c84;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2153",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 250.8,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28815,
    "c": 0.08749,
    "h": 287.9
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#2A2153
secondary
#7C8749
accent
#D355BC
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2A2153

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

Preview Lab → · Contrast checker → · Palette generator →

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