#2B196A#2B196A

#2B196A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.132 H 285.3°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2B196A
RGBrgb(43, 25, 106)
HSLhsl(253, 62%, 26%)
HSVhsv(253, 76%, 42%)
CMYKcmyk(59.4%, 76.4%, 0%, 58.4%)
CIE-LABlab(16.74, 31.97, -44.15)
CIE-LCHlch(16.74, 54.51, 305.91°)
OKLaboklab(29.63% 0.0347 -0.1271)
OKLCHoklch(29.63% 0.132 285.3)
XYZxyz(3.9446, 2.2492, 13.8592)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B196A #586A19
analogous
#192F6A #2B196A #53196A
triadic
#2B196A #6A2B19 #196A2B
tetradic
#2B196A #6A192F #586A19 #196A53
square
#2B196A #6A192F #586A19 #196A53
split-complementary
#2B196A #6A5319 #2F6A19
monochromatic
#0A0619 #170D38 #2B196A #3F259C #5330CD

Accessibility & contrast

On white

14.48
#2B196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B196A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B196A#FFFFFF#000000##FFFFFF
##2B196A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#0C2F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b196a;
/* rgb */ color: rgb(43, 25, 106);
/* oklch */ color: oklch(29.6% 0.132 285.3);
Tailwind
colors: {
  custom: {
    50: '#6d5895',
    500: '#2b196a',
    950: '#000000',
  },
}
SCSS
$custom: #2b196a;
$custom-light: #6d5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2b196a",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 253.333,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29634,
    "c": 0.13173,
    "h": 285.3
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#2B196A
secondary
#8AA03F
accent
#E543C1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B196A

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

Preview Lab → · Contrast checker → · Palette generator →

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