#2A165B#2A165B

#2A165B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.116 H 289.9°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2A165B
RGBrgb(42, 22, 91)
HSLhsl(257, 61%, 22%)
HSVhsv(257, 76%, 36%)
CMYKcmyk(53.8%, 75.8%, 0%, 64.3%)
CIE-LABlab(14.52, 28.70, -37.86)
CIE-LCHlch(14.52, 47.51, 307.17°)
OKLaboklab(27.57% 0.0394 -0.1087)
OKLCHoklch(27.57% 0.116 289.9)
XYZxyz(3.1295, 1.8213, 10.0821)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A165B #475B16
analogous
#16255B #2A165B #4D165B
triadic
#2A165B #5B2A16 #165B2A
tetradic
#2A165B #5B1625 #475B16 #165B4D
square
#2A165B #5B1625 #475B16 #165B4D
split-complementary
#2A165B #5B4D16 #255B16
monochromatic
#0B0619 #130A2A #2A165B #41228C #572EBE

Accessibility & contrast

On white

15.39
#2A165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A165B
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A165B#FFFFFF#000000##FFFFFF
##2A165B1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#192836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a165b;
/* rgb */ color: rgb(42, 22, 91);
/* oklch */ color: oklch(27.6% 0.116 289.9);
Tailwind
colors: {
  custom: {
    50: '#69558a',
    500: '#2a165b',
    950: '#000000',
  },
}
SCSS
$custom: #2a165b;
$custom-light: #69558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a165b",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 257.391,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27573,
    "c": 0.11559,
    "h": 289.9
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#2A165B
secondary
#79923B
accent
#E444B6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A165B

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

Preview Lab → · Contrast checker → · Palette generator →

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