#2A1899#2A1899

#2A1899 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.7% C 0.191 H 276.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2A1899
RGBrgb(42, 24, 153)
HSLhsl(248, 73%, 35%)
HSVhsv(248, 84%, 60%)
CMYKcmyk(72.5%, 84.3%, 0%, 40%)
CIE-LABlab(21.74, 47.19, -65.68)
CIE-LCHlch(21.74, 80.87, 305.70°)
OKLaboklab(34.66% 0.0201 -0.1898)
OKLCHoklch(34.66% 0.191 276)
XYZxyz(7.0294, 3.4447, 30.4253)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1899 #879918
analogous
#184799 #2A1899 #6B1899
triadic
#2A1899 #992A18 #18992A
tetradic
#2A1899 #991847 #879918 #18996B
square
#2A1899 #991847 #879918 #18996B
split-complementary
#2A1899 #996B18 #479918
monochromatic
#0D072F #1B1064 #2A1899 #3920CE #5E49E2

Accessibility & contrast

On white

12.43
#2A1899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A1899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1899
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1899#FFFFFF#000000##FFFFFF
##2A18991.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1899;
/* rgb */ color: rgb(42, 24, 153);
/* oklch */ color: oklch(34.7% 0.191 276.0);
Tailwind
colors: {
  custom: {
    50: '#775ab8',
    500: '#2a1899',
    950: '#000000',
  },
}
SCSS
$custom: #2a1899;
$custom-light: #775ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1899",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 153
  },
  "hsl": {
    "h": 248.372,
    "s": 72.881,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34657,
    "c": 0.19088,
    "h": 276
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#2A1899
secondary
#B3C449
accent
#F038D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1899

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

Preview Lab → · Contrast checker → · Palette generator →

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