#2A197E#2A197E

#2A197E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 280.1°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#2A197E
RGBrgb(42, 25, 126)
HSLhsl(250, 67%, 30%)
HSVhsv(250, 80%, 49%)
CMYKcmyk(66.7%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.77, 38.30, -53.71)
CIE-LCHlch(18.77, 65.97, 305.49°)
OKLaboklab(31.68% 0.0278 -0.155)
OKLCHoklch(31.68% 0.158 280.1)
XYZxyz(5.0672, 2.6935, 19.9875)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A197E #6D7E19
analogous
#193B7E #2A197E #5D197E
triadic
#2A197E #7E2A19 #197E2A
tetradic
#2A197E #7E193B #6D7E19 #197E5D
square
#2A197E #7E193B #6D7E19 #197E5D
split-complementary
#2A197E #7E5D19 #3B7E19
monochromatic
#09051A #190F4B #2A197E #3B23B1 #543AD8

Accessibility & contrast

On white

13.65
#2A197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A197E
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A197E#FFFFFF#000000##FFFFFF
##2A197E1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a197e;
/* rgb */ color: rgb(42, 25, 126);
/* oklch */ color: oklch(31.7% 0.158 280.1);
Tailwind
colors: {
  custom: {
    50: '#7059a4',
    500: '#2a197e',
    950: '#000000',
  },
}
SCSS
$custom: #2a197e;
$custom-light: #7059a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a197e",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 250.099,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31677,
    "c": 0.15751,
    "h": 280.1
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#2A197E
secondary
#9FB241
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2A197E

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

Preview Lab → · Contrast checker → · Palette generator →

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