#2A165F#2A165F

#2A165F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.121 H 288.6°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2A165F
RGBrgb(42, 22, 95)
HSLhsl(256, 62%, 23%)
HSVhsv(256, 77%, 37%)
CMYKcmyk(55.8%, 76.8%, 0%, 62.7%)
CIE-LABlab(14.91, 29.99, -39.90)
CIE-LCHlch(14.91, 49.91, 306.93°)
OKLaboklab(27.97% 0.0385 -0.1146)
OKLCHoklch(27.97% 0.121 288.6)
XYZxyz(3.3067, 1.8921, 11.0152)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A165F #4B5F16
analogous
#16275F #2A165F #4E165F
triadic
#2A165F #5F2A16 #165F2A
tetradic
#2A165F #5F1627 #4B5F16 #165F4E
square
#2A165F #5F1627 #4B5F16 #165F4E
split-complementary
#2A165F #5F4E16 #275F16
monochromatic
#0B0619 #140A2D #2A165F #402291 #562DC2

Accessibility & contrast

On white

15.24
#2A165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A165F
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A165F#FFFFFF#000000##FFFFFF
##2A165F1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#162939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a165f;
/* rgb */ color: rgb(42, 22, 95);
/* oklch */ color: oklch(28.0% 0.121 288.6);
Tailwind
colors: {
  custom: {
    50: '#6a558d',
    500: '#2a165f',
    950: '#000000',
  },
}
SCSS
$custom: #2a165f;
$custom-light: #6a558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a165f",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 256.438,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27971,
    "c": 0.12094,
    "h": 288.6
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#2A165F
secondary
#7D963B
accent
#E542B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A165F

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

Preview Lab → · Contrast checker → · Palette generator →

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