#2A197C#2A197C

#2A197C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.155 H 280.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#2A197C
RGBrgb(42, 25, 124)
HSLhsl(250, 66%, 29%)
HSVhsv(250, 80%, 49%)
CMYKcmyk(66.1%, 79.8%, 0%, 51.4%)
CIE-LABlab(18.55, 37.66, -52.81)
CIE-LCHlch(18.55, 64.86, 305.50°)
OKLaboklab(31.46% 0.0283 -0.1524)
OKLCHoklch(31.46% 0.155 280.5)
XYZxyz(4.9394, 2.6424, 19.3146)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A197C #6B7C19
analogous
#193A7C #2A197C #5C197C
triadic
#2A197C #7C2A19 #197C2A
tetradic
#2A197C #7C193A #6B7C19 #197C5C
square
#2A197C #7C193A #6B7C19 #197C5C
split-complementary
#2A197C #7C5C19 #3A7C19
monochromatic
#090519 #190F49 #2A197C #3B23AF #5438D7

Accessibility & contrast

On white

13.74
#2A197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A197C
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A197C#FFFFFF#000000##FFFFFF
##2A197C1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a197c;
/* rgb */ color: rgb(42, 25, 124);
/* oklch */ color: oklch(31.5% 0.155 280.5);
Tailwind
colors: {
  custom: {
    50: '#7059a3',
    500: '#2a197c',
    950: '#000000',
  },
}
SCSS
$custom: #2a197c;
$custom-light: #7059a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a197c",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 250.303,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31456,
    "c": 0.15501,
    "h": 280.5
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#2A197C
secondary
#9DB040
accent
#E93ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A197C

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

Preview Lab → · Contrast checker → · Palette generator →

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