#2A186A#2A186A

#2A186A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.133 H 284.8°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2A186A
RGBrgb(42, 24, 106)
HSLhsl(253, 63%, 25%)
HSVhsv(253, 77%, 42%)
CMYKcmyk(60.4%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.43, 32.39, -44.66)
CIE-LCHlch(16.43, 55.17, 305.95°)
OKLaboklab(29.39% 0.034 -0.1286)
OKLCHoklch(29.39% 0.133 284.8)
XYZxyz(3.8822, 2.1859, 13.8502)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A186A #586A18
analogous
#182F6A #2A186A #53186A
triadic
#2A186A #6A2A18 #186A2A
tetradic
#2A186A #6A182F #586A18 #186A53
square
#2A186A #6A182F #586A18 #186A53
split-complementary
#2A186A #6A5318 #2F6A18
monochromatic
#0A0619 #160D38 #2A186A #3E239C #522FCE

Accessibility & contrast

On white

14.61
#2A186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A186A
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A186A#FFFFFF#000000##FFFFFF
##2A186A1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#092F3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a186a;
/* rgb */ color: rgb(42, 24, 106);
/* oklch */ color: oklch(29.4% 0.133 284.8);
Tailwind
colors: {
  custom: {
    50: '#6c5795',
    500: '#2a186a',
    950: '#000000',
  },
}
SCSS
$custom: #2a186a;
$custom-light: #6c5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2a186a",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 253.171,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29389,
    "c": 0.13302,
    "h": 284.8
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#2A186A
secondary
#8AA03E
accent
#E642C2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A186A

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

Preview Lab → · Contrast checker → · Palette generator →

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