#2A168C#2A168C

#2A168C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.177 H 278.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2A168C
RGBrgb(42, 22, 140)
HSLhsl(250, 73%, 32%)
HSVhsv(250, 84%, 55%)
CMYKcmyk(70%, 84.3%, 0%, 45.1%)
CIE-LABlab(19.88, 44.15, -60.71)
CIE-LCHlch(19.88, 75.06, 306.02°)
OKLaboklab(32.92% 0.025 -0.1754)
OKLCHoklch(32.92% 0.177 278.1)
XYZxyz(5.9739, 2.9590, 25.0622)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A168C #788C16
analogous
#163D8C #2A168C #65168C
triadic
#2A168C #8C2A16 #168C2A
tetradic
#2A168C #8C163D #788C16 #168C65
square
#2A168C #8C163D #788C16 #168C65
split-complementary
#2A168C #8C6516 #3D8C16
monochromatic
#0A0522 #1A0E57 #2A168C #3A1EC1 #583CE0

Accessibility & contrast

On white

13.19
#2A168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A168C
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A168C#FFFFFF#000000##FFFFFF
##2A168C1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a168c;
/* rgb */ color: rgb(42, 22, 140);
/* oklch */ color: oklch(32.9% 0.177 278.1);
Tailwind
colors: {
  custom: {
    50: '#7458af',
    500: '#2a168c',
    950: '#000000',
  },
}
SCSS
$custom: #2a168c;
$custom-light: #7458af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a168c",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 250.169,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.17713,
    "h": 278.1
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#2A168C
secondary
#AAC03E
accent
#F038D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A168C

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

Preview Lab → · Contrast checker → · Palette generator →

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