#2A154A#2A154A

#2A154A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.094 H 297.7°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#2A154A
RGBrgb(42, 21, 74)
HSLhsl(264, 56%, 19%)
HSVhsv(264, 72%, 29%)
CMYKcmyk(43.2%, 71.6%, 0%, 71%)
CIE-LABlab(12.75, 23.94, -29.16)
CIE-LCHlch(12.75, 37.72, 309.39°)
OKLaboklab(25.83% 0.0435 -0.0831)
OKLCHoklch(25.83% 0.094 297.7)
XYZxyz(2.4587, 1.5229, 6.6417)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A154A #354A15
analogous
#151A4A #2A154A #44154A
triadic
#2A154A #4A2A15 #154A2A
tetradic
#2A154A #4A151A #354A15 #154A44
square
#2A154A #4A151A #354A15 #154A44
split-complementary
#2A154A #4A4415 #1A4A15
monochromatic
#0E0718 #0F071A #2A154A #45237A #6030A9

Accessibility & contrast

On white

16.10
#2A154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A154A
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A154A#FFFFFF#000000##FFFFFF
##2A154A1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#22212D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a154a;
/* rgb */ color: rgb(42, 21, 74);
/* oklch */ color: oklch(25.8% 0.094 297.7);
Tailwind
colors: {
  custom: {
    50: '#67547d',
    500: '#2a154a',
    950: '#000000',
  },
}
SCSS
$custom: #2a154a;
$custom-light: #67547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a154a",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 263.774,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25825,
    "c": 0.09379,
    "h": 297.7
  },
  "luminance": 0.01523
}

Semantic roles & 50–950 ramp

primary
#2A154A
secondary
#658239
accent
#DF49A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2A154A

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

Preview Lab → · Contrast checker → · Palette generator →

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