#2A184D#2A184D

#2A184D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.093 H 294.9°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2A184D
RGBrgb(42, 24, 77)
HSLhsl(260, 52%, 20%)
HSVhsv(260, 69%, 30%)
CMYKcmyk(45.5%, 68.8%, 0%, 69.8%)
CIE-LABlab(13.72, 22.96, -29.66)
CIE-LCHlch(13.72, 37.51, 307.74°)
OKLaboklab(26.6% 0.0393 -0.0846)
OKLCHoklch(26.6% 0.093 294.9)
XYZxyz(2.6207, 1.6813, 7.2062)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A184D #3B4D18
analogous
#18214D #2A184D #44184D
triadic
#2A184D #4D2A18 #184D2A
tetradic
#2A184D #4D1821 #3B4D18 #184D44
square
#2A184D #4D1821 #3B4D18 #184D44
split-complementary
#2A184D #4D4418 #214D18
monochromatic
#0D0717 #11091E #2A184D #43277C #5D35AA

Accessibility & contrast

On white

15.72
#2A184D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A184D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A184D
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A184D#FFFFFF#000000##FFFFFF
##2A184D1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#21242F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a184d;
/* rgb */ color: rgb(42, 24, 77);
/* oklch */ color: oklch(26.6% 0.093 294.9);
Tailwind
colors: {
  custom: {
    50: '#67567f',
    500: '#2a184d',
    950: '#000000',
  },
}
SCSS
$custom: #2a184d;
$custom-light: #67567f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a184d",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 77
  },
  "hsl": {
    "h": 260.377,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26602,
    "c": 0.09325,
    "h": 294.9
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#2A184D
secondary
#6C843D
accent
#DC4CAB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A184D

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

Preview Lab → · Contrast checker → · Palette generator →

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