#2A148B#2A148B

#2A148B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.177 H 278.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2A148B
RGBrgb(42, 20, 139)
HSLhsl(251, 75%, 31%)
HSVhsv(251, 86%, 55%)
CMYKcmyk(69.8%, 85.6%, 0%, 45.5%)
CIE-LABlab(19.46, 44.73, -60.78)
CIE-LCHlch(19.46, 75.47, 306.35°)
OKLaboklab(32.6% 0.0261 -0.1755)
OKLCHoklch(32.6% 0.177 278.5)
XYZxyz(5.8637, 2.8561, 24.6634)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A148B #758B14
analogous
#14398B #2A148B #65148B
triadic
#2A148B #8B2A14 #148B2A
tetradic
#2A148B #8B1439 #758B14 #148B65
square
#2A148B #8B1439 #758B14 #148B65
split-complementary
#2A148B #8B6514 #398B14
monochromatic
#0A0520 #1A0C55 #2A148B #3A1CC1 #5737E2

Accessibility & contrast

On white

13.36
#2A148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2A148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A148B
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A148B#FFFFFF#000000##FFFFFF
##2A148B1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a148b;
/* rgb */ color: rgb(42, 20, 139);
/* oklch */ color: oklch(32.6% 0.177 278.5);
Tailwind
colors: {
  custom: {
    50: '#7457ae',
    500: '#2a148b',
    950: '#000000',
  },
}
SCSS
$custom: #2a148b;
$custom-light: #7457ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a148b",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 251.092,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32596,
    "c": 0.17746,
    "h": 278.5
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#2A148B
secondary
#A7BF3C
accent
#F136CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A148B

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

Preview Lab → · Contrast checker → · Palette generator →

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