#2B148A#2B148A

#2B148A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.6% C 0.176 H 279.2°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2B148A
RGBrgb(43, 20, 138)
HSLhsl(252, 75%, 31%)
HSVhsv(252, 86%, 54%)
CMYKcmyk(68.8%, 85.5%, 0%, 45.9%)
CIE-LABlab(19.43, 44.52, -60.21)
CIE-LCHlch(19.43, 74.88, 306.48°)
OKLaboklab(32.56% 0.028 -0.1738)
OKLCHoklch(32.56% 0.176 279.2)
XYZxyz(5.8324, 2.8484, 24.2823)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B148A #738A14
analogous
#14388A #2B148A #66148A
triadic
#2B148A #8A2B14 #148A2B
tetradic
#2B148A #8A1438 #738A14 #148A66
square
#2B148A #8A1438 #738A14 #148A66
split-complementary
#2B148A #8A6614 #388A14
monochromatic
#0A051F #1A0C55 #2B148A #3C1CBF #5836E2

Accessibility & contrast

On white

13.38
#2B148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B148A
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B148A#FFFFFF#000000##FFFFFF
##2B148A1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b148a;
/* rgb */ color: rgb(43, 20, 138);
/* oklch */ color: oklch(32.6% 0.176 279.2);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2b148a',
    950: '#000000',
  },
}
SCSS
$custom: #2b148a;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b148a",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 251.695,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32561,
    "c": 0.17609,
    "h": 279.2
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#2B148A
secondary
#A5BE3C
accent
#F136CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B148A

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

Preview Lab → · Contrast checker → · Palette generator →

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