#2A164F#2A164F

#2A164F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.099 H 294.8°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2A164F
RGBrgb(42, 22, 79)
HSLhsl(261, 56%, 20%)
HSVhsv(261, 72%, 31%)
CMYKcmyk(46.8%, 72.2%, 0%, 69%)
CIE-LABlab(13.41, 24.88, -31.53)
CIE-LCHlch(13.41, 40.16, 308.28°)
OKLaboklab(26.44% 0.0416 -0.09)
OKLCHoklch(26.44% 0.099 294.8)
XYZxyz(2.6527, 1.6305, 7.5706)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A164F #3B4F16
analogous
#161E4F #2A164F #47164F
triadic
#2A164F #4F2A16 #164F2A
tetradic
#2A164F #4F161E #3B4F16 #164F47
square
#2A164F #4F161E #3B4F16 #164F47
split-complementary
#2A164F #4F4716 #1E4F16
monochromatic
#0D0718 #11091F #2A164F #43237F #5D31AF

Accessibility & contrast

On white

15.83
#2A164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A164F
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A164F#FFFFFF#000000##FFFFFF
##2A164F1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#202330
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a164f;
/* rgb */ color: rgb(42, 22, 79);
/* oklch */ color: oklch(26.4% 0.099 294.8);
Tailwind
colors: {
  custom: {
    50: '#675481',
    500: '#2a164f',
    950: '#000000',
  },
}
SCSS
$custom: #2a164f;
$custom-light: #675481;
$custom-dark: #000000;
JSON
{
  "hex": "#2a164f",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 261.053,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26438,
    "c": 0.0992,
    "h": 294.8
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#2A164F
secondary
#6C863A
accent
#E048AB
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A164F

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

Preview Lab → · Contrast checker → · Palette generator →

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