#2B146B#2B146B

#2B146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.139 H 286.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2B146B
RGBrgb(43, 20, 107)
HSLhsl(256, 69%, 25%)
HSVhsv(256, 81%, 42%)
CMYKcmyk(59.8%, 81.3%, 0%, 58%)
CIE-LABlab(15.88, 35.05, -46.23)
CIE-LCHlch(15.88, 58.01, 307.17°)
OKLaboklab(29.06% 0.0385 -0.1331)
OKLCHoklch(29.06% 0.139 286.1)
XYZxyz(3.8995, 2.0752, 14.1021)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B146B #546B14
analogous
#14296B #2B146B #57146B
triadic
#2B146B #6B2B14 #146B2B
tetradic
#2B146B #6B1429 #546B14 #146B57
square
#2B146B #6B1429 #546B14 #146B57
split-complementary
#2B146B #6B5714 #296B14
monochromatic
#0A051A #160A37 #2B146B #401E9F #5427D2

Accessibility & contrast

On white

14.84
#2B146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B146B
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B146B#FFFFFF#000000##FFFFFF
##2B146B1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#0B2D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b146b;
/* rgb */ color: rgb(43, 20, 107);
/* oklch */ color: oklch(29.1% 0.139 286.1);
Tailwind
colors: {
  custom: {
    50: '#6d5596',
    500: '#2b146b',
    950: '#000000',
  },
}
SCSS
$custom: #2b146b;
$custom-light: #6d5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2b146b",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 255.862,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29056,
    "c": 0.13858,
    "h": 286.1
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#2B146B
secondary
#86A239
accent
#EB3CBD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B146B

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

Preview Lab → · Contrast checker → · Palette generator →

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