#2A154E#2A154E

#2A154E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.099 H 295.7°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2A154E
RGBrgb(42, 21, 78)
HSLhsl(262, 58%, 19%)
HSVhsv(262, 73%, 31%)
CMYKcmyk(46.2%, 73.1%, 0%, 69.4%)
CIE-LABlab(13.10, 25.18, -31.35)
CIE-LCHlch(13.10, 40.21, 308.77°)
OKLaboklab(26.18% 0.043 -0.0895)
OKLCHoklch(26.18% 0.099 295.7)
XYZxyz(2.5978, 1.5786, 7.3741)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A154E #394E15
analogous
#151D4E #2A154E #47154E
triadic
#2A154E #4E2A15 #154E2A
tetradic
#2A154E #4E151D #394E15 #154E47
square
#2A154E #4E151D #394E15 #154E47
split-complementary
#2A154E #4E4715 #1D4E15
monochromatic
#0D0618 #10081E #2A154E #44227E #5E2FAE

Accessibility & contrast

On white

15.96
#2A154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2A154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A154E
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A154E#FFFFFF#000000##FFFFFF
##2A154E1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#21232F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a154e;
/* rgb */ color: rgb(42, 21, 78);
/* oklch */ color: oklch(26.2% 0.099 295.7);
Tailwind
colors: {
  custom: {
    50: '#675480',
    500: '#2a154e',
    950: '#000000',
  },
}
SCSS
$custom: #2a154e;
$custom-light: #675480;
$custom-dark: #000000;
JSON
{
  "hex": "#2a154e",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 262.105,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26183,
    "c": 0.09933,
    "h": 295.7
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#2A154E
secondary
#6A8639
accent
#E147A8
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A154E

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

Preview Lab → · Contrast checker → · Palette generator →

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