#2A167C#2A167C

#2A167C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.158 H 281.0°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2A167C
RGBrgb(42, 22, 124)
HSLhsl(252, 70%, 29%)
HSVhsv(252, 82%, 49%)
CMYKcmyk(66.1%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.01, 39.21, -53.69)
CIE-LCHlch(18.01, 66.49, 306.14°)
OKLaboklab(31.08% 0.0301 -0.1549)
OKLCHoklch(31.08% 0.158 281)
XYZxyz(4.8787, 2.5209, 19.2944)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A167C #687C16
analogous
#16357C #2A167C #5D167C
triadic
#2A167C #7C2A16 #167C2A
tetradic
#2A167C #7C1635 #687C16 #167C5D
square
#2A167C #7C1635 #687C16 #167C5D
split-complementary
#2A167C #7C5D16 #357C16
monochromatic
#09051A #180D48 #2A167C #3C1FB0 #5332DB

Accessibility & contrast

On white

13.96
#2A167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A167C
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A167C#FFFFFF#000000##FFFFFF
##2A167C1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a167c;
/* rgb */ color: rgb(42, 22, 124);
/* oklch */ color: oklch(31.1% 0.158 281.0);
Tailwind
colors: {
  custom: {
    50: '#7057a3',
    500: '#2a167c',
    950: '#000000',
  },
}
SCSS
$custom: #2a167c;
$custom-light: #7057a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a167c",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 251.765,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31081,
    "c": 0.15785,
    "h": 281
  },
  "luminance": 0.02521
}

Semantic roles & 50–950 ramp

primary
#2A167C
secondary
#9AB13D
accent
#ED3BCA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A167C

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

Preview Lab → · Contrast checker → · Palette generator →

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