#2A154D#2A154D

#2A154D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.098 H 296.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2A154D
RGBrgb(42, 21, 77)
HSLhsl(263, 57%, 19%)
HSVhsv(263, 73%, 30%)
CMYKcmyk(45.5%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.01, 24.87, -30.81)
CIE-LCHlch(13.01, 39.59, 308.92°)
OKLaboklab(26.09% 0.0432 -0.0879)
OKLCHoklch(26.09% 0.098 296.1)
XYZxyz(2.5622, 1.5643, 7.1867)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A154D #384D15
analogous
#151C4D #2A154D #46154D
triadic
#2A154D #4D2A15 #154D2A
tetradic
#2A154D #4D151C #384D15 #154D46
square
#2A154D #4D151C #384D15 #154D46
split-complementary
#2A154D #4D4615 #1C4D15
monochromatic
#0D0718 #10081D #2A154D #44227D #5E2FAD

Accessibility & contrast

On white

16.00
#2A154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A154D
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A154D#FFFFFF#000000##FFFFFF
##2A154D1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#21222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a154d;
/* rgb */ color: rgb(42, 21, 77);
/* oklch */ color: oklch(26.1% 0.098 296.1);
Tailwind
colors: {
  custom: {
    50: '#67547f',
    500: '#2a154d',
    950: '#000000',
  },
}
SCSS
$custom: #2a154d;
$custom-light: #67547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a154d",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 262.5,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26092,
    "c": 0.09795,
    "h": 296.1
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#2A154D
secondary
#688539
accent
#E047A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A154D

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

Preview Lab → · Contrast checker → · Palette generator →

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