#2A184E#2A184E

#2A184E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.095 H 294.4°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2A184E
RGBrgb(42, 24, 78)
HSLhsl(260, 53%, 20%)
HSVhsv(260, 69%, 31%)
CMYKcmyk(46.2%, 69.2%, 0%, 69.4%)
CIE-LABlab(13.80, 23.28, -30.21)
CIE-LCHlch(13.80, 38.15, 307.62°)
OKLaboklab(26.69% 0.0392 -0.0862)
OKLCHoklch(26.69% 0.095 294.4)
XYZxyz(2.6563, 1.6955, 7.3936)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A184E #3C4E18
analogous
#18214E #2A184E #45184E
triadic
#2A184E #4E2A18 #184E2A
tetradic
#2A184E #4E1821 #3C4E18 #184E45
square
#2A184E #4E1821 #3C4E18 #184E45
split-complementary
#2A184E #4E4518 #214E18
monochromatic
#0D0717 #110A1F #2A184E #43267D #5C35AC

Accessibility & contrast

On white

15.68
#2A184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A184E
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A184E#FFFFFF#000000##FFFFFF
##2A184E1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#202430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a184e;
/* rgb */ color: rgb(42, 24, 78);
/* oklch */ color: oklch(26.7% 0.095 294.4);
Tailwind
colors: {
  custom: {
    50: '#675680',
    500: '#2a184e',
    950: '#000000',
  },
}
SCSS
$custom: #2a184e;
$custom-light: #675680;
$custom-dark: #000000;
JSON
{
  "hex": "#2a184e",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 260,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.2669,
    "c": 0.09469,
    "h": 294.4
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#2A184E
secondary
#6D853D
accent
#DC4BAC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A184E

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

Preview Lab → · Contrast checker → · Palette generator →

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