#2A165A#2A165A

#2A165A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.114 H 290.3°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2A165A
RGBrgb(42, 22, 90)
HSLhsl(258, 61%, 22%)
HSVhsv(258, 76%, 35%)
CMYKcmyk(53.3%, 75.6%, 0%, 64.7%)
CIE-LABlab(14.42, 28.39, -37.35)
CIE-LCHlch(14.42, 46.91, 307.24°)
OKLaboklab(27.48% 0.0397 -0.1071)
OKLCHoklch(27.48% 0.114 290.3)
XYZxyz(3.0867, 1.8041, 9.8565)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A165A #465A16
analogous
#16245A #2A165A #4C165A
triadic
#2A165A #5A2A16 #165A2A
tetradic
#2A165A #5A1624 #465A16 #165A4C
square
#2A165A #5A1624 #465A16 #165A4C
split-complementary
#2A165A #5A4C16 #245A16
monochromatic
#0B0619 #130A29 #2A165A #41228B #582EBC

Accessibility & contrast

On white

15.43
#2A165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A165A
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A165A#FFFFFF#000000##FFFFFF
##2A165A1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#1A2736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a165a;
/* rgb */ color: rgb(42, 22, 90);
/* oklch */ color: oklch(27.5% 0.114 290.3);
Tailwind
colors: {
  custom: {
    50: '#695589',
    500: '#2a165a',
    950: '#000000',
  },
}
SCSS
$custom: #2a165a;
$custom-light: #695589;
$custom-dark: #000000;
JSON
{
  "hex": "#2a165a",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 257.647,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27475,
    "c": 0.11425,
    "h": 290.3
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#2A165A
secondary
#78913B
accent
#E444B5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A165A

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

Preview Lab → · Contrast checker → · Palette generator →

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