#2A184C#2A184C

#2A184C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.092 H 295.4°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2A184C
RGBrgb(42, 24, 76)
HSLhsl(261, 52%, 20%)
HSVhsv(261, 68%, 30%)
CMYKcmyk(44.7%, 68.4%, 0%, 70.2%)
CIE-LABlab(13.63, 22.64, -29.11)
CIE-LCHlch(13.63, 36.88, 307.88°)
OKLaboklab(26.52% 0.0394 -0.0829)
OKLCHoklch(26.52% 0.092 295.4)
XYZxyz(2.5856, 1.6673, 7.0217)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A184C #3A4C18
analogous
#18204C #2A184C #44184C
triadic
#2A184C #4C2A18 #184C2A
tetradic
#2A184C #4C1820 #3A4C18 #184C44
square
#2A184C #4C1820 #3A4C18 #184C44
split-complementary
#2A184C #4C4418 #204C18
monochromatic
#0D0717 #10091D #2A184C #44277B #5D35A9

Accessibility & contrast

On white

15.75
#2A184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A184C
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A184C#FFFFFF#000000##FFFFFF
##2A184C1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a184c;
/* rgb */ color: rgb(42, 24, 76);
/* oklch */ color: oklch(26.5% 0.092 295.4);
Tailwind
colors: {
  custom: {
    50: '#67567e',
    500: '#2a184c',
    950: '#000000',
  },
}
SCSS
$custom: #2a184c;
$custom-light: #67567e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a184c",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 260.769,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26516,
    "c": 0.09181,
    "h": 295.4
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#2A184C
secondary
#6B833D
accent
#DB4CAA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A184C

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

Preview Lab → · Contrast checker → · Palette generator →

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