#2A153E#2A153E

#2A153E is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.8% C 0.077 H 305.1°. Best body text is #FFFFFF at 16.47:1 contrast (WCAG AA passes).

Color values

HEX#2A153E
RGBrgb(42, 21, 62)
HSLhsl(271, 49%, 16%)
HSVhsv(271, 66%, 24%)
CMYKcmyk(32.3%, 66.1%, 0%, 75.7%)
CIE-LABlab(11.80, 20.30, -22.29)
CIE-LCHlch(11.80, 30.15, 312.34°)
OKLaboklab(24.83% 0.0442 -0.0629)
OKLCHoklch(24.83% 0.077 305.1)
XYZxyz(2.0923, 1.3764, 4.7119)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A153E #293E15
analogous
#16153E #2A153E #3E153E
triadic
#2A153E #3E2A15 #153E2A
tetradic
#2A153E #3E1615 #293E15 #153E3E
square
#2A153E #3E1615 #293E15 #153E3E
split-complementary
#2A153E #3E3E15 #153E16
monochromatic
#0F0817 #0F0817 #2A153E #49246C #683499

Accessibility & contrast

On white

16.47
#2A153E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A153E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A153E
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A153E#FFFFFF#000000##FFFFFF
##2A153E1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051E3F
Deuteranopia (green-blind)
#0D1F3D
Tritanopia (blue-blind)
#271D27
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a153e;
/* rgb */ color: rgb(42, 21, 62);
/* oklch */ color: oklch(24.8% 0.077 305.1);
Tailwind
colors: {
  custom: {
    50: '#655373',
    500: '#2a153e',
    950: '#000000',
  },
}
SCSS
$custom: #2a153e;
$custom-light: #655373;
$custom-dark: #000000;
JSON
{
  "hex": "#2a153e",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 62
  },
  "hsl": {
    "h": 270.732,
    "s": 49.398,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24828,
    "c": 0.07687,
    "h": 305.1
  },
  "luminance": 0.01376
}

Semantic roles & 50–950 ramp

primary
#2A153E
secondary
#577639
accent
#D94F92
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A153E

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

Preview Lab → · Contrast checker → · Palette generator →

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