#2A1D88#2A1D88

#2A1D88 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.166 H 277.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2A1D88
RGBrgb(42, 29, 136)
HSLhsl(247, 65%, 32%)
HSVhsv(247, 79%, 53%)
CMYKcmyk(69.1%, 78.7%, 0%, 46.7%)
CIE-LABlab(20.63, 39.39, -56.97)
CIE-LCHlch(20.63, 69.26, 304.66°)
OKLaboklab(33.31% 0.0227 -0.1646)
OKLCHoklch(33.31% 0.166 277.8)
XYZxyz(5.8367, 3.1480, 23.5878)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1D88 #7B881D
analogous
#1D4588 #2A1D88 #601D88
triadic
#2A1D88 #882A1D #1D882A
tetradic
#2A1D88 #881D45 #7B881D #1D8860
square
#2A1D88 #881D45 #7B881D #1D8860
split-complementary
#2A1D88 #88601D #45881D
monochromatic
#0B0723 #1A1256 #2A1D88 #3A28BA #5948D8

Accessibility & contrast

On white

12.89
#2A1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A1D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1D88
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1D88#FFFFFF#000000##FFFFFF
##2A1D881.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1d88;
/* rgb */ color: rgb(42, 29, 136);
/* oklch */ color: oklch(33.3% 0.166 277.8);
Tailwind
colors: {
  custom: {
    50: '#725cac',
    500: '#2a1d88',
    950: '#000000',
  },
}
SCSS
$custom: #2a1d88;
$custom-light: #725cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1d88",
  "rgb": {
    "r": 42,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 247.29,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33305,
    "c": 0.16612,
    "h": 277.8
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#2A1D88
secondary
#ACBA47
accent
#E840D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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