#2A165E#2A165E

#2A165E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.120 H 288.9°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2A165E
RGBrgb(42, 22, 94)
HSLhsl(257, 62%, 23%)
HSVhsv(257, 77%, 37%)
CMYKcmyk(55.3%, 76.6%, 0%, 63.1%)
CIE-LABlab(14.81, 29.67, -39.39)
CIE-LCHlch(14.81, 49.31, 306.99°)
OKLaboklab(27.87% 0.0387 -0.1131)
OKLCHoklch(27.87% 0.12 288.9)
XYZxyz(3.2615, 1.8741, 10.7774)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A165E #4A5E16
analogous
#16265E #2A165E #4E165E
triadic
#2A165E #5E2A16 #165E2A
tetradic
#2A165E #5E1626 #4A5E16 #165E4E
square
#2A165E #5E1626 #4A5E16 #165E4E
split-complementary
#2A165E #5E4E16 #265E16
monochromatic
#0B0619 #140A2C #2A165E #402290 #562DC1

Accessibility & contrast

On white

15.27
#2A165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A165E
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A165E#FFFFFF#000000##FFFFFF
##2A165E1.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#172938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a165e;
/* rgb */ color: rgb(42, 22, 94);
/* oklch */ color: oklch(27.9% 0.120 288.9);
Tailwind
colors: {
  custom: {
    50: '#6a558c',
    500: '#2a165e',
    950: '#000000',
  },
}
SCSS
$custom: #2a165e;
$custom-light: #6a558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a165e",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 256.667,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27871,
    "c": 0.1196,
    "h": 288.9
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#2A165E
secondary
#7C953B
accent
#E543B8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A165E

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

Preview Lab → · Contrast checker → · Palette generator →

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