#2A197B#2A197B

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

Color values

HEX#2A197B
RGBrgb(42, 25, 123)
HSLhsl(250, 66%, 29%)
HSVhsv(250, 80%, 48%)
CMYKcmyk(65.9%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.44, 37.34, -52.35)
CIE-LCHlch(18.44, 64.30, 305.50°)
OKLaboklab(31.35% 0.0286 -0.1511)
OKLCHoklch(31.35% 0.154 280.7)
XYZxyz(4.8765, 2.6172, 18.9832)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A197B #6A7B19
analogous
#19397B #2A197B #5B197B
triadic
#2A197B #7B2A19 #197B2A
tetradic
#2A197B #7B1939 #6A7B19 #197B5B
square
#2A197B #7B1939 #6A7B19 #197B5B
split-complementary
#2A197B #7B5B19 #397B19
monochromatic
#090519 #190F48 #2A197B #3B23AE #5338D7

Accessibility & contrast

On white

13.78
#2A197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A197B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A197B#FFFFFF#000000##FFFFFF
##2A197B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a197b;
/* rgb */ color: rgb(42, 25, 123);
/* oklch */ color: oklch(31.3% 0.154 280.7);
Tailwind
colors: {
  custom: {
    50: '#7059a2',
    500: '#2a197b',
    950: '#000000',
  },
}
SCSS
$custom: #2a197b;
$custom-light: #7059a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a197b",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 250.408,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31346,
    "c": 0.15376,
    "h": 280.7
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#2A197B
secondary
#9CAF40
accent
#E93FCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A197B

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

Preview Lab → · Contrast checker → · Palette generator →

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