#2A197F#2A197F

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

Color values

HEX#2A197F
RGBrgb(42, 25, 127)
HSLhsl(250, 67%, 30%)
HSVhsv(250, 80%, 50%)
CMYKcmyk(66.9%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.88, 38.62, -54.17)
CIE-LCHlch(18.88, 66.53, 305.49°)
OKLaboklab(31.79% 0.0275 -0.1564)
OKLCHoklch(31.79% 0.159 280)
XYZxyz(5.1320, 2.7194, 20.3290)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A197F #6E7F19
analogous
#193B7F #2A197F #5D197F
triadic
#2A197F #7F2A19 #197F2A
tetradic
#2A197F #7F193B #6E7F19 #197F5D
square
#2A197F #7F193B #6E7F19 #197F5D
split-complementary
#2A197F #7F5D19 #3B7F19
monochromatic
#08051A #190F4C #2A197F #3B23B2 #553AD8

Accessibility & contrast

On white

13.60
#2A197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A197F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A197F#FFFFFF#000000##FFFFFF
##2A197F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.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: #2a197f;
/* rgb */ color: rgb(42, 25, 127);
/* oklch */ color: oklch(31.8% 0.159 280.0);
Tailwind
colors: {
  custom: {
    50: '#7059a5',
    500: '#2a197f',
    950: '#000000',
  },
}
SCSS
$custom: #2a197f;
$custom-light: #7059a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a197f",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 250,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31788,
    "c": 0.15876,
    "h": 280
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#2A197F
secondary
#A0B341
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2A197F

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

Preview Lab → · Contrast checker → · Palette generator →

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