#2A167F#2A167F

#2A167F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.162 H 280.4°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#2A167F
RGBrgb(42, 22, 127)
HSLhsl(251, 70%, 29%)
HSVhsv(251, 83%, 50%)
CMYKcmyk(66.9%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.36, 40.15, -55.04)
CIE-LCHlch(18.36, 68.12, 306.11°)
OKLaboklab(31.42% 0.0292 -0.1589)
OKLCHoklch(31.42% 0.162 280.4)
XYZxyz(5.0713, 2.5980, 20.3088)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A167F #6B7F16
analogous
#16367F #2A167F #5F167F
triadic
#2A167F #7F2A16 #167F2A
tetradic
#2A167F #7F1636 #6B7F16 #167F5F
square
#2A167F #7F1636 #6B7F16 #167F5F
split-complementary
#2A167F #7F5F16 #367F16
monochromatic
#09051A #190D4B #2A167F #3B1FB3 #5434DC

Accessibility & contrast

On white

13.82
#2A167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A167F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A167F#FFFFFF#000000##FFFFFF
##2A167F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a167f;
/* rgb */ color: rgb(42, 22, 127);
/* oklch */ color: oklch(31.4% 0.162 280.4);
Tailwind
colors: {
  custom: {
    50: '#7157a5',
    500: '#2a167f',
    950: '#000000',
  },
}
SCSS
$custom: #2a167f;
$custom-light: #7157a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a167f",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 251.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31421,
    "c": 0.16153,
    "h": 280.4
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#2A167F
secondary
#9DB43D
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A167F

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

Preview Lab → · Contrast checker → · Palette generator →

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