#2A187A#2A187A

#2A187A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.153 H 281.1°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2A187A
RGBrgb(42, 24, 122)
HSLhsl(251, 67%, 29%)
HSVhsv(251, 80%, 48%)
CMYKcmyk(65.6%, 80.3%, 0%, 52.2%)
CIE-LABlab(18.14, 37.55, -52.20)
CIE-LCHlch(18.14, 64.30, 305.73°)
OKLaboklab(31.11% 0.0295 -0.1506)
OKLCHoklch(31.11% 0.153 281.1)
XYZxyz(4.7932, 2.5503, 18.6482)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A187A #687A18
analogous
#18377A #2A187A #5B187A
triadic
#2A187A #7A2A18 #187A2A
tetradic
#2A187A #7A1837 #687A18 #187A5B
square
#2A187A #7A1837 #687A18 #187A5B
split-complementary
#2A187A #7A5B18 #377A18
monochromatic
#09051A #180E47 #2A187A #3C22AD #5335D7

Accessibility & contrast

On white

13.91
#2A187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A187A
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A187A#FFFFFF#000000##FFFFFF
##2A187A1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a187a;
/* rgb */ color: rgb(42, 24, 122);
/* oklch */ color: oklch(31.1% 0.153 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f58a2',
    500: '#2a187a',
    950: '#000000',
  },
}
SCSS
$custom: #2a187a;
$custom-light: #6f58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a187a",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 251.02,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31106,
    "c": 0.15349,
    "h": 281.1
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#2A187A
secondary
#9AAF3F
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A187A

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

Preview Lab → · Contrast checker → · Palette generator →

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