#2B148B#2B148B

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

Color values

HEX#2B148B
RGBrgb(43, 20, 139)
HSLhsl(252, 75%, 31%)
HSVhsv(252, 86%, 55%)
CMYKcmyk(69.1%, 85.6%, 0%, 45.5%)
CIE-LABlab(19.55, 44.81, -60.63)
CIE-LCHlch(19.55, 75.40, 306.47°)
OKLaboklab(32.68% 0.0277 -0.1751)
OKLCHoklch(32.68% 0.177 279)
XYZxyz(5.9051, 2.8775, 24.6653)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B148B #748B14
analogous
#14388B #2B148B #66148B
triadic
#2B148B #8B2B14 #148B2B
tetradic
#2B148B #8B1438 #748B14 #148B66
square
#2B148B #8B1438 #748B14 #148B66
split-complementary
#2B148B #8B6614 #388B14
monochromatic
#0A0520 #1A0C55 #2B148B #3C1CC1 #5837E2

Accessibility & contrast

On white

13.33
#2B148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B148B
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B148B#FFFFFF#000000##FFFFFF
##2B148B1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b148b;
/* rgb */ color: rgb(43, 20, 139);
/* oklch */ color: oklch(32.7% 0.177 279.0);
Tailwind
colors: {
  custom: {
    50: '#7457ae',
    500: '#2b148b',
    950: '#000000',
  },
}
SCSS
$custom: #2b148b;
$custom-light: #7457ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b148b",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 251.597,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32678,
    "c": 0.17725,
    "h": 279
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#2B148B
secondary
#A6BF3C
accent
#F136CD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B148B

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

Preview Lab → · Contrast checker → · Palette generator →

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