#2B196B#2B196B

#2B196B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.133 H 285.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2B196B
RGBrgb(43, 25, 107)
HSLhsl(253, 62%, 26%)
HSVhsv(253, 77%, 42%)
CMYKcmyk(59.8%, 76.6%, 0%, 58%)
CIE-LABlab(16.85, 32.30, -44.64)
CIE-LCHlch(16.85, 55.10, 305.89°)
OKLaboklab(29.74% 0.0345 -0.1285)
OKLCHoklch(29.74% 0.133 285)
XYZxyz(3.9969, 2.2702, 14.1346)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B196B #596B19
analogous
#19306B #2B196B #54196B
triadic
#2B196B #6B2B19 #196B2B
tetradic
#2B196B #6B1930 #596B19 #196B54
square
#2B196B #6B1930 #596B19 #196B54
split-complementary
#2B196B #6B5419 #306B19
monochromatic
#0A0619 #170D39 #2B196B #3F259D #5330CE

Accessibility & contrast

On white

14.44
#2B196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B196B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B196B#FFFFFF#000000##FFFFFF
##2B196B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#0B2F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b196b;
/* rgb */ color: rgb(43, 25, 107);
/* oklch */ color: oklch(29.7% 0.133 285.0);
Tailwind
colors: {
  custom: {
    50: '#6d5896',
    500: '#2b196b',
    950: '#000000',
  },
}
SCSS
$custom: #2b196b;
$custom-light: #6d5896;
$custom-dark: #000000;
JSON
{
  "hex": "#2b196b",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 253.171,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29737,
    "c": 0.13305,
    "h": 285
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#2B196B
secondary
#8BA13F
accent
#E543C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B196B

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

Preview Lab → · Contrast checker → · Palette generator →

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