#2A186E#2A186E

#2A186E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.138 H 283.8°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2A186E
RGBrgb(42, 24, 110)
HSLhsl(253, 64%, 26%)
HSVhsv(253, 78%, 43%)
CMYKcmyk(61.8%, 78.2%, 0%, 56.9%)
CIE-LABlab(16.85, 33.69, -46.59)
CIE-LCHlch(16.85, 57.50, 305.87°)
OKLaboklab(29.81% 0.0329 -0.1342)
OKLCHoklch(29.81% 0.138 283.8)
XYZxyz(4.0951, 2.2710, 14.9714)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A186E #5C6E18
analogous
#18316E #2A186E #55186E
triadic
#2A186E #6E2A18 #186E2A
tetradic
#2A186E #6E1831 #5C6E18 #186E55
square
#2A186E #6E1831 #5C6E18 #186E55
split-complementary
#2A186E #6E5518 #316E18
monochromatic
#0A0519 #170D3C #2A186E #3D23A0 #512FD2

Accessibility & contrast

On white

14.44
#2A186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A186E
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A186E#FFFFFF#000000##FFFFFF
##2A186E1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#023042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a186e;
/* rgb */ color: rgb(42, 24, 110);
/* oklch */ color: oklch(29.8% 0.138 283.8);
Tailwind
colors: {
  custom: {
    50: '#6d5798',
    500: '#2a186e',
    950: '#000000',
  },
}
SCSS
$custom: #2a186e;
$custom-light: #6d5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2a186e",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 252.558,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29809,
    "c": 0.13823,
    "h": 283.8
  },
  "luminance": 0.02271
}

Semantic roles & 50–950 ramp

primary
#2A186E
secondary
#8EA43E
accent
#E741C4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A186E

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

Preview Lab → · Contrast checker → · Palette generator →

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