#2A169D#2A169D

#2A169D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.197 H 275.7°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2A169D
RGBrgb(42, 22, 157)
HSLhsl(249, 75%, 35%)
HSVhsv(249, 86%, 62%)
CMYKcmyk(73.2%, 86%, 0%, 38.4%)
CIE-LABlab(21.94, 49.23, -67.80)
CIE-LCHlch(21.94, 83.79, 305.99°)
OKLaboklab(34.94% 0.0195 -0.1959)
OKLCHoklch(34.94% 0.197 275.7)
XYZxyz(7.3256, 3.4997, 32.1812)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A169D #899D16
analogous
#16459D #2A169D #6E169D
triadic
#2A169D #9D2A16 #169D2A
tetradic
#2A169D #9D1645 #899D16 #169D6E
square
#2A169D #9D1645 #899D16 #169D6E
split-complementary
#2A169D #9D6E16 #459D16
monochromatic
#0D0732 #1C0E67 #2A169D #381ED3 #5F48E5

Accessibility & contrast

On white

12.35
#2A169D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2A169D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A169D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A169D#FFFFFF#000000##FFFFFF
##2A169D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002E9B
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a169d;
/* rgb */ color: rgb(42, 22, 157);
/* oklch */ color: oklch(34.9% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#785abb',
    500: '#2a169d',
    950: '#000000',
  },
}
SCSS
$custom: #2a169d;
$custom-light: #785abb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a169d",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 157
  },
  "hsl": {
    "h": 248.889,
    "s": 75.419,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34935,
    "c": 0.19691,
    "h": 275.7
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#2A169D
secondary
#B4C748
accent
#F236D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A169D

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

Preview Lab → · Contrast checker → · Palette generator →

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