#2A1699#2A1699

#2A1699 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.192 H 276.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2A1699
RGBrgb(42, 22, 153)
HSLhsl(249, 75%, 34%)
HSVhsv(249, 86%, 60%)
CMYKcmyk(72.5%, 85.6%, 0%, 40%)
CIE-LABlab(21.45, 48.05, -66.16)
CIE-LCHlch(21.45, 81.77, 305.99°)
OKLaboklab(34.46% 0.0208 -0.1912)
OKLCHoklch(34.46% 0.192 276.2)
XYZxyz(6.9896, 3.3653, 30.4120)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1699 #859916
analogous
#164499 #2A1699 #6C1699
triadic
#2A1699 #992A16 #16992A
tetradic
#2A1699 #991644 #859916 #16996C
square
#2A1699 #991644 #859916 #16996C
split-complementary
#2A1699 #996C16 #449916
monochromatic
#0D072E #1B0E63 #2A1699 #391ECF #5D45E4

Accessibility & contrast

On white

12.55
#2A1699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A1699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1699
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1699#FFFFFF#000000##FFFFFF
##2A16991.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00399C
Deuteranopia (green-blind)
#002E97
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1699;
/* rgb */ color: rgb(42, 22, 153);
/* oklch */ color: oklch(34.5% 0.192 276.2);
Tailwind
colors: {
  custom: {
    50: '#7759b8',
    500: '#2a1699',
    950: '#000000',
  },
}
SCSS
$custom: #2a1699;
$custom-light: #7759b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1699",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 153
  },
  "hsl": {
    "h": 249.16,
    "s": 74.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.19231,
    "h": 276.2
  },
  "luminance": 0.03366
}

Semantic roles & 50–950 ramp

primary
#2A1699
secondary
#B2C546
accent
#F136D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1699

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

Preview Lab → · Contrast checker → · Palette generator →

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