#2B146A#2B146A

#2B146A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.137 H 286.4°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#2B146A
RGBrgb(43, 20, 106)
HSLhsl(256, 68%, 25%)
HSVhsv(256, 81%, 42%)
CMYKcmyk(59.4%, 81.1%, 0%, 58.4%)
CIE-LABlab(15.77, 34.74, -45.75)
CIE-LCHlch(15.77, 57.44, 307.21°)
OKLaboklab(28.95% 0.0388 -0.1317)
OKLCHoklch(28.95% 0.137 286.4)
XYZxyz(3.8472, 2.0543, 13.8267)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B146A #536A14
analogous
#14286A #2B146A #56146A
triadic
#2B146A #6A2B14 #146A2B
tetradic
#2B146A #6A1428 #536A14 #146A56
square
#2B146A #6A1428 #536A14 #146A56
split-complementary
#2B146A #6A5614 #286A14
monochromatic
#0A051A #160A37 #2B146A #401E9D #5527D1

Accessibility & contrast

On white

14.88
#2B146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B146A
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B146A#FFFFFF#000000##FFFFFF
##2B146A1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#0D2D3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b146a;
/* rgb */ color: rgb(43, 20, 106);
/* oklch */ color: oklch(28.9% 0.137 286.4);
Tailwind
colors: {
  custom: {
    50: '#6d5596',
    500: '#2b146a',
    950: '#000000',
  },
}
SCSS
$custom: #2b146a;
$custom-light: #6d5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2b146a",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 256.047,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28948,
    "c": 0.13733,
    "h": 286.4
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#2B146A
secondary
#85A139
accent
#EB3DBC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B146A

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

Preview Lab → · Contrast checker → · Palette generator →

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