#2A197A#2A197A

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

Color values

HEX#2A197A
RGBrgb(42, 25, 122)
HSLhsl(251, 66%, 29%)
HSVhsv(251, 80%, 48%)
CMYKcmyk(65.6%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.33, 37.02, -51.89)
CIE-LCHlch(18.33, 63.74, 305.50°)
OKLaboklab(31.24% 0.0289 -0.1497)
OKLCHoklch(31.24% 0.153 280.9)
XYZxyz(4.8142, 2.5923, 18.6552)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A197A #697A19
analogous
#19397A #2A197A #5B197A
triadic
#2A197A #7A2A19 #197A2A
tetradic
#2A197A #7A1939 #697A19 #197A5B
square
#2A197A #7A1939 #697A19 #197A5B
split-complementary
#2A197A #7A5B19 #397A19
monochromatic
#090519 #190F47 #2A197A #3B23AD #5337D6

Accessibility & contrast

On white

13.83
#2A197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A197A
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A197A#FFFFFF#000000##FFFFFF
##2A197A1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.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: #2a197a;
/* rgb */ color: rgb(42, 25, 122);
/* oklch */ color: oklch(31.2% 0.152 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f58a1',
    500: '#2a197a',
    950: '#000000',
  },
}
SCSS
$custom: #2a197a;
$custom-light: #6f58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a197a",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 250.515,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31237,
    "c": 0.1525,
    "h": 280.9
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#2A197A
secondary
#9BAF40
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A197A

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

Preview Lab → · Contrast checker → · Palette generator →

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