#2A186C#2A186C

#2A186C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.136 H 284.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#2A186C
RGBrgb(42, 24, 108)
HSLhsl(253, 64%, 26%)
HSVhsv(253, 78%, 42%)
CMYKcmyk(61.1%, 77.8%, 0%, 57.6%)
CIE-LABlab(16.64, 33.04, -45.63)
CIE-LCHlch(16.64, 56.34, 305.91°)
OKLaboklab(29.6% 0.0334 -0.1314)
OKLCHoklch(29.6% 0.136 284.3)
XYZxyz(3.9874, 2.2280, 14.4044)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A186C #5A6C18
analogous
#18306C #2A186C #54186C
triadic
#2A186C #6C2A18 #186C2A
tetradic
#2A186C #6C1830 #5A6C18 #186C54
square
#2A186C #6C1830 #5A6C18 #186C54
split-complementary
#2A186C #6C5418 #306C18
monochromatic
#0A0619 #170D3A #2A186C #3D239E #512ED0

Accessibility & contrast

On white

14.53
#2A186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A186C
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A186C#FFFFFF#000000##FFFFFF
##2A186C1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#052F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a186c;
/* rgb */ color: rgb(42, 24, 108);
/* oklch */ color: oklch(29.6% 0.136 284.3);
Tailwind
colors: {
  custom: {
    50: '#6c5797',
    500: '#2a186c',
    950: '#000000',
  },
}
SCSS
$custom: #2a186c;
$custom-light: #6c5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2a186c",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 252.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29598,
    "c": 0.13563,
    "h": 284.3
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#2A186C
secondary
#8CA23E
accent
#E741C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A186C

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

Preview Lab → · Contrast checker → · Palette generator →

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