#2B197A#2B197A

#2B197A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.152 H 281.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2B197A
RGBrgb(43, 25, 122)
HSLhsl(251, 66%, 29%)
HSVhsv(251, 80%, 48%)
CMYKcmyk(64.8%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.42, 37.14, -51.73)
CIE-LCHlch(18.42, 63.69, 305.68°)
OKLaboklab(31.33% 0.0305 -0.1492)
OKLCHoklch(31.33% 0.152 281.5)
XYZxyz(4.8556, 2.6136, 18.6572)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B197A #687A19
analogous
#19387A #2B197A #5C197A
triadic
#2B197A #7A2B19 #197A2B
tetradic
#2B197A #7A1938 #687A19 #197A5C
square
#2B197A #7A1938 #687A19 #197A5C
split-complementary
#2B197A #7A5C19 #387A19
monochromatic
#090519 #190F47 #2B197A #3D23AD #5537D6

Accessibility & contrast

On white

13.79
#2B197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B197A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B197A#FFFFFF#000000##FFFFFF
##2B197A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b197a;
/* rgb */ color: rgb(43, 25, 122);
/* oklch */ color: oklch(31.3% 0.152 281.5);
Tailwind
colors: {
  custom: {
    50: '#7059a1',
    500: '#2b197a',
    950: '#000000',
  },
}
SCSS
$custom: #2b197a;
$custom-light: #7059a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b197a",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 251.134,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31326,
    "c": 0.15231,
    "h": 281.5
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#2B197A
secondary
#9AAF40
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B197A

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

Preview Lab → · Contrast checker → · Palette generator →

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