#2A154C#2A154C

#2A154C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.097 H 296.6°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#2A154C
RGBrgb(42, 21, 76)
HSLhsl(263, 57%, 19%)
HSVhsv(263, 72%, 30%)
CMYKcmyk(44.7%, 72.4%, 0%, 70.2%)
CIE-LABlab(12.92, 24.56, -30.26)
CIE-LCHlch(12.92, 38.97, 309.07°)
OKLaboklab(26% 0.0433 -0.0863)
OKLCHoklch(26% 0.097 296.6)
XYZxyz(2.5272, 1.5503, 7.0022)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A154C #374C15
analogous
#151C4C #2A154C #46154C
triadic
#2A154C #4C2A15 #154C2A
tetradic
#2A154C #4C151C #374C15 #154C46
square
#2A154C #4C151C #374C15 #154C46
split-complementary
#2A154C #4C4615 #1C4C15
monochromatic
#0D0718 #10081C #2A154C #44227C #5F2FAC

Accessibility & contrast

On white

16.03
#2A154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A154C
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A154C#FFFFFF#000000##FFFFFF
##2A154C1.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#21222E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a154c;
/* rgb */ color: rgb(42, 21, 76);
/* oklch */ color: oklch(26.0% 0.097 296.6);
Tailwind
colors: {
  custom: {
    50: '#67547e',
    500: '#2a154c',
    950: '#000000',
  },
}
SCSS
$custom: #2a154c;
$custom-light: #67547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a154c",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 262.909,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26002,
    "c": 0.09657,
    "h": 296.6
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#2A154C
secondary
#678439
accent
#E048A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A154C

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

Preview Lab → · Contrast checker → · Palette generator →

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