#2A186F#2A186F

#2A186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 283.5°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#2A186F
RGBrgb(42, 24, 111)
HSLhsl(252, 64%, 26%)
HSVhsv(252, 78%, 44%)
CMYKcmyk(62.2%, 78.4%, 0%, 56.5%)
CIE-LABlab(16.95, 34.02, -47.07)
CIE-LCHlch(16.95, 58.07, 305.86°)
OKLaboklab(29.92% 0.0327 -0.1356)
OKLCHoklch(29.92% 0.14 283.5)
XYZxyz(4.1498, 2.2929, 15.2597)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A186F #5D6F18
analogous
#18326F #2A186F #56186F
triadic
#2A186F #6F2A18 #186F2A
tetradic
#2A186F #6F1832 #5D6F18 #186F56
square
#2A186F #6F1832 #5D6F18 #186F56
split-complementary
#2A186F #6F5618 #326F18
monochromatic
#0A0519 #170D3D #2A186F #3D23A1 #512FD2

Accessibility & contrast

On white

14.40
#2A186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A186F
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A186F#FFFFFF#000000##FFFFFF
##2A186F1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a186f;
/* rgb */ color: rgb(42, 24, 111);
/* oklch */ color: oklch(29.9% 0.140 283.5);
Tailwind
colors: {
  custom: {
    50: '#6d5799',
    500: '#2a186f',
    950: '#000000',
  },
}
SCSS
$custom: #2a186f;
$custom-light: #6d5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2a186f",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 252.414,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29915,
    "c": 0.13951,
    "h": 283.5
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#2A186F
secondary
#8FA53E
accent
#E740C5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A186F

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

Preview Lab → · Contrast checker → · Palette generator →

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