#2A168D#2A168D

#2A168D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.178 H 277.9°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2A168D
RGBrgb(42, 22, 141)
HSLhsl(250, 73%, 32%)
HSVhsv(250, 84%, 55%)
CMYKcmyk(70.2%, 84.4%, 0%, 44.7%)
CIE-LABlab(20.00, 44.45, -61.14)
CIE-LCHlch(20.00, 75.59, 306.02°)
OKLaboklab(33.04% 0.0246 -0.1766)
OKLCHoklch(33.04% 0.178 277.9)
XYZxyz(6.0479, 2.9886, 25.4523)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A168D #798D16
analogous
#163E8D #2A168D #66168D
triadic
#2A168D #8D2A16 #168D2A
tetradic
#2A168D #8D163E #798D16 #168D66
square
#2A168D #8D163E #798D16 #168D66
split-complementary
#2A168D #8D6616 #3E8D16
monochromatic
#0A0523 #1A0E58 #2A168D #3A1EC2 #583DE1

Accessibility & contrast

On white

13.14
#2A168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A168D
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A168D#FFFFFF#000000##FFFFFF
##2A168D1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a168d;
/* rgb */ color: rgb(42, 22, 141);
/* oklch */ color: oklch(33.0% 0.178 277.9);
Tailwind
colors: {
  custom: {
    50: '#7458b0',
    500: '#2a168d',
    950: '#000000',
  },
}
SCSS
$custom: #2a168d;
$custom-light: #7458b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a168d",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 250.084,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33037,
    "c": 0.17831,
    "h": 277.9
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#2A168D
secondary
#ABC13E
accent
#F038D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A168D

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

Preview Lab → · Contrast checker → · Palette generator →

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