#2A167B#2A167B

#2A167B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.157 H 281.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2A167B
RGBrgb(42, 22, 123)
HSLhsl(252, 70%, 28%)
HSVhsv(252, 82%, 48%)
CMYKcmyk(65.9%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.90, 38.90, -53.24)
CIE-LCHlch(17.90, 65.94, 306.15°)
OKLaboklab(30.97% 0.0305 -0.1536)
OKLCHoklch(30.97% 0.157 281.2)
XYZxyz(4.8158, 2.4958, 18.9630)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A167B #677B16
analogous
#16347B #2A167B #5C167B
triadic
#2A167B #7B2A16 #167B2A
tetradic
#2A167B #7B1634 #677B16 #167B5C
square
#2A167B #7B1634 #677B16 #167B5C
split-complementary
#2A167B #7B5C16 #347B16
monochromatic
#09051A #180D47 #2A167B #3C1FAF #5331DA

Accessibility & contrast

On white

14.01
#2A167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A167B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A167B#FFFFFF#000000##FFFFFF
##2A167B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a167b;
/* rgb */ color: rgb(42, 22, 123);
/* oklch */ color: oklch(31.0% 0.157 281.2);
Tailwind
colors: {
  custom: {
    50: '#7057a2',
    500: '#2a167b',
    950: '#000000',
  },
}
SCSS
$custom: #2a167b;
$custom-light: #7057a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a167b",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 251.881,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30969,
    "c": 0.15663,
    "h": 281.2
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#2A167B
secondary
#99B03D
accent
#EC3BC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A167B

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

Preview Lab → · Contrast checker → · Palette generator →

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