#2A154B#2A154B

#2A154B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.095 H 297.1°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2A154B
RGBrgb(42, 21, 75)
HSLhsl(263, 56%, 19%)
HSVhsv(263, 72%, 29%)
CMYKcmyk(44%, 72%, 0%, 70.6%)
CIE-LABlab(12.84, 24.25, -29.71)
CIE-LCHlch(12.84, 38.35, 309.22°)
OKLaboklab(25.91% 0.0434 -0.0847)
OKLCHoklch(25.91% 0.095 297.1)
XYZxyz(2.4927, 1.5365, 6.8205)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A154B #364B15
analogous
#151B4B #2A154B #45154B
triadic
#2A154B #4B2A15 #154B2A
tetradic
#2A154B #4B151B #364B15 #154B45
square
#2A154B #4B151B #364B15 #154B45
split-complementary
#2A154B #4B4515 #1B4B15
monochromatic
#0D0718 #0F081B #2A154B #45227B #6030AB

Accessibility & contrast

On white

16.06
#2A154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A154B
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A154B#FFFFFF#000000##FFFFFF
##2A154B1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a154b;
/* rgb */ color: rgb(42, 21, 75);
/* oklch */ color: oklch(25.9% 0.095 297.1);
Tailwind
colors: {
  custom: {
    50: '#67547e',
    500: '#2a154b',
    950: '#000000',
  },
}
SCSS
$custom: #2a154b;
$custom-light: #67547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a154b",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 263.333,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25913,
    "c": 0.09518,
    "h": 297.1
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#2A154B
secondary
#668339
accent
#E048A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A154B

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

Preview Lab → · Contrast checker → · Palette generator →

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