#2A184B#2A184B

#2A184B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.090 H 295.9°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2A184B
RGBrgb(42, 24, 75)
HSLhsl(261, 52%, 19%)
HSVhsv(261, 68%, 29%)
CMYKcmyk(44%, 68%, 0%, 70.6%)
CIE-LABlab(13.55, 22.32, -28.55)
CIE-LCHlch(13.55, 36.24, 308.02°)
OKLaboklab(26.43% 0.0394 -0.0813)
OKLCHoklch(26.43% 0.09 295.9)
XYZxyz(2.5511, 1.6535, 6.8400)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A184B #394B18
analogous
#18204B #2A184B #44184B
triadic
#2A184B #4B2A18 #184B2A
tetradic
#2A184B #4B1820 #394B18 #184B44
square
#2A184B #4B1820 #394B18 #184B44
split-complementary
#2A184B #4B4418 #204B18
monochromatic
#0D0717 #10091D #2A184B #442779 #5E36A8

Accessibility & contrast

On white

15.78
#2A184B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A184B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A184B
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A184B#FFFFFF#000000##FFFFFF
##2A184B1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#22232E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a184b;
/* rgb */ color: rgb(42, 24, 75);
/* oklch */ color: oklch(26.4% 0.090 295.9);
Tailwind
colors: {
  custom: {
    50: '#67567e',
    500: '#2a184b',
    950: '#000000',
  },
}
SCSS
$custom: #2a184b;
$custom-light: #67567e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a184b",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 75
  },
  "hsl": {
    "h": 261.176,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2643,
    "c": 0.09036,
    "h": 295.9
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#2A184B
secondary
#6A823D
accent
#DB4DA9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A184B

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

Preview Lab → · Contrast checker → · Palette generator →

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