#2A165C#2A165C

#2A165C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.117 H 289.6°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#2A165C
RGBrgb(42, 22, 92)
HSLhsl(257, 61%, 22%)
HSVhsv(257, 76%, 36%)
CMYKcmyk(54.3%, 76.1%, 0%, 63.9%)
CIE-LABlab(14.62, 29.03, -38.37)
CIE-LCHlch(14.62, 48.12, 307.11°)
OKLaboklab(27.67% 0.0392 -0.1102)
OKLCHoklch(27.67% 0.117 289.6)
XYZxyz(3.1730, 1.8386, 10.3108)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A165C #485C16
analogous
#16255C #2A165C #4D165C
triadic
#2A165C #5C2A16 #165C2A
tetradic
#2A165C #5C1625 #485C16 #165C4D
square
#2A165C #5C1625 #485C16 #165C4D
split-complementary
#2A165C #5C4D16 #255C16
monochromatic
#0B0619 #130A2B #2A165C #41228D #572EBF

Accessibility & contrast

On white

15.35
#2A165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A165C
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A165C#FFFFFF#000000##FFFFFF
##2A165C1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#182837
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a165c;
/* rgb */ color: rgb(42, 22, 92);
/* oklch */ color: oklch(27.7% 0.117 289.6);
Tailwind
colors: {
  custom: {
    50: '#6a558b',
    500: '#2a165c',
    950: '#000000',
  },
}
SCSS
$custom: #2a165c;
$custom-light: #6a558b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a165c",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 257.143,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27672,
    "c": 0.11694,
    "h": 289.6
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#2A165C
secondary
#7A933B
accent
#E543B6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A165C

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

Preview Lab → · Contrast checker → · Palette generator →

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