#2B197F#2B197F

#2B197F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.159 H 280.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2B197F
RGBrgb(43, 25, 127)
HSLhsl(251, 67%, 30%)
HSVhsv(251, 80%, 50%)
CMYKcmyk(66.1%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.97, 38.74, -54.01)
CIE-LCHlch(18.97, 66.47, 305.65°)
OKLaboklab(31.87% 0.029 -0.1559)
OKLCHoklch(31.87% 0.159 280.5)
XYZxyz(5.1734, 2.7408, 20.3310)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B197F #6D7F19
analogous
#193A7F #2B197F #5E197F
triadic
#2B197F #7F2B19 #197F2B
tetradic
#2B197F #7F193A #6D7F19 #197F5E
square
#2B197F #7F193A #6D7F19 #197F5E
split-complementary
#2B197F #7F5E19 #3A7F19
monochromatic
#09051A #1A0F4C #2B197F #3C23B2 #563AD8

Accessibility & contrast

On white

13.56
#2B197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B197F
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B197F#FFFFFF#000000##FFFFFF
##2B197F1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b197f;
/* rgb */ color: rgb(43, 25, 127);
/* oklch */ color: oklch(31.9% 0.159 280.5);
Tailwind
colors: {
  custom: {
    50: '#7159a5',
    500: '#2b197f',
    950: '#000000',
  },
}
SCSS
$custom: #2b197f;
$custom-light: #7159a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b197f",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 250.588,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31874,
    "c": 0.15856,
    "h": 280.5
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#2B197F
secondary
#9FB341
accent
#EA3ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B197F

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

Preview Lab → · Contrast checker → · Palette generator →

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