#2B197D#2B197D

#2B197D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.156 H 280.9°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2B197D
RGBrgb(43, 25, 125)
HSLhsl(251, 67%, 29%)
HSVhsv(251, 80%, 49%)
CMYKcmyk(65.6%, 80%, 0%, 51%)
CIE-LABlab(18.75, 38.10, -53.11)
CIE-LCHlch(18.75, 65.36, 305.66°)
OKLaboklab(31.65% 0.0296 -0.1532)
OKLCHoklch(31.65% 0.156 280.9)
XYZxyz(5.0444, 2.6891, 19.6513)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B197D #6B7D19
analogous
#19397D #2B197D #5D197D
triadic
#2B197D #7D2B19 #197D2B
tetradic
#2B197D #7D1939 #6B7D19 #197D5D
square
#2B197D #7D1939 #6B7D19 #197D5D
split-complementary
#2B197D #7D5D19 #397D19
monochromatic
#09051A #190F4A #2B197D #3D23B0 #5639D7

Accessibility & contrast

On white

13.65
#2B197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2B197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B197D
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B197D#FFFFFF#000000##FFFFFF
##2B197D1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b197d;
/* rgb */ color: rgb(43, 25, 125);
/* oklch */ color: oklch(31.7% 0.156 280.9);
Tailwind
colors: {
  custom: {
    50: '#7059a4',
    500: '#2b197d',
    950: '#000000',
  },
}
SCSS
$custom: #2b197d;
$custom-light: #7059a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b197d",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 250.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31654,
    "c": 0.15608,
    "h": 280.9
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#2B197D
secondary
#9DB140
accent
#EA3ECB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B197D

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

Preview Lab → · Contrast checker → · Palette generator →

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