#2B196F#2B196F

#2B196F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.138 H 284.0°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#2B196F
RGBrgb(43, 25, 111)
HSLhsl(253, 63%, 27%)
HSVhsv(253, 77%, 44%)
CMYKcmyk(61.3%, 77.5%, 0%, 56.5%)
CIE-LABlab(17.26, 33.60, -46.57)
CIE-LCHlch(17.26, 57.42, 305.81°)
OKLaboklab(30.15% 0.0335 -0.1342)
OKLCHoklch(30.15% 0.138 284)
XYZxyz(4.2123, 2.3563, 15.2687)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B196F #5D6F19
analogous
#19326F #2B196F #56196F
triadic
#2B196F #6F2B19 #196F2B
tetradic
#2B196F #6F1932 #5D6F19 #196F56
square
#2B196F #6F1932 #5D6F19 #196F56
split-complementary
#2B196F #6F5619 #326F19
monochromatic
#0A0619 #180E3D #2B196F #3E24A1 #5332D1

Accessibility & contrast

On white

14.27
#2B196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B196F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B196F#FFFFFF#000000##FFFFFF
##2B196F1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#043142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b196f;
/* rgb */ color: rgb(43, 25, 111);
/* oklch */ color: oklch(30.2% 0.138 284.0);
Tailwind
colors: {
  custom: {
    50: '#6e5899',
    500: '#2b196f',
    950: '#000000',
  },
}
SCSS
$custom: #2b196f;
$custom-light: #6e5899;
$custom-dark: #000000;
JSON
{
  "hex": "#2b196f",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 252.558,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30152,
    "c": 0.13827,
    "h": 284
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#2B196F
secondary
#8FA43F
accent
#E642C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B196F

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

Preview Lab → · Contrast checker → · Palette generator →

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