#2A197D#2A197D

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

Color values

HEX#2A197D
RGBrgb(42, 25, 125)
HSLhsl(250, 67%, 29%)
HSVhsv(250, 80%, 49%)
CMYKcmyk(66.4%, 80%, 0%, 51%)
CIE-LABlab(18.66, 37.98, -53.26)
CIE-LCHlch(18.66, 65.42, 305.49°)
OKLaboklab(31.57% 0.028 -0.1537)
OKLCHoklch(31.57% 0.156 280.3)
XYZxyz(5.0030, 2.6678, 19.6494)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A197D #6C7D19
analogous
#193A7D #2A197D #5C197D
triadic
#2A197D #7D2A19 #197D2A
tetradic
#2A197D #7D193A #6C7D19 #197D5C
square
#2A197D #7D193A #6C7D19 #197D5C
split-complementary
#2A197D #7D5C19 #3A7D19
monochromatic
#09051A #190F4A #2A197D #3B23B0 #5439D7

Accessibility & contrast

On white

13.69
#2A197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A197D
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A197D#FFFFFF#000000##FFFFFF
##2A197D1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a197d;
/* rgb */ color: rgb(42, 25, 125);
/* oklch */ color: oklch(31.6% 0.156 280.3);
Tailwind
colors: {
  custom: {
    50: '#7059a4',
    500: '#2a197d',
    950: '#000000',
  },
}
SCSS
$custom: #2a197d;
$custom-light: #7059a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a197d",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 250.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31566,
    "c": 0.15627,
    "h": 280.3
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#2A197D
secondary
#9EB140
accent
#EA3ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A197D

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

Preview Lab → · Contrast checker → · Palette generator →

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