#2B196E#2B196E

#2B196E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.137 H 284.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2B196E
RGBrgb(43, 25, 110)
HSLhsl(253, 63%, 26%)
HSVhsv(253, 77%, 43%)
CMYKcmyk(60.9%, 77.3%, 0%, 56.9%)
CIE-LABlab(17.15, 33.27, -46.09)
CIE-LCHlch(17.15, 56.84, 305.83°)
OKLaboklab(30.05% 0.0337 -0.1328)
OKLCHoklch(30.05% 0.137 284.2)
XYZxyz(4.1575, 2.3344, 14.9803)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B196E #5C6E19
analogous
#19326E #2B196E #56196E
triadic
#2B196E #6E2B19 #196E2B
tetradic
#2B196E #6E1932 #5C6E19 #196E56
square
#2B196E #6E1932 #5C6E19 #196E56
split-complementary
#2B196E #6E5619 #326E19
monochromatic
#0A0619 #180E3C #2B196E #3E24A0 #5331D0

Accessibility & contrast

On white

14.31
#2B196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B196E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B196E#FFFFFF#000000##FFFFFF
##2B196E1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#063142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b196e;
/* rgb */ color: rgb(43, 25, 110);
/* oklch */ color: oklch(30.0% 0.137 284.2);
Tailwind
colors: {
  custom: {
    50: '#6d5898',
    500: '#2b196e',
    950: '#000000',
  },
}
SCSS
$custom: #2b196e;
$custom-light: #6d5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2b196e",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 252.706,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30047,
    "c": 0.13697,
    "h": 284.2
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#2B196E
secondary
#8EA33F
accent
#E642C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2B196E

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

Preview Lab → · Contrast checker → · Palette generator →

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