#2A1889#2A1889

#2A1889 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.172 H 278.4°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2A1889
RGBrgb(42, 24, 137)
HSLhsl(250, 70%, 32%)
HSVhsv(250, 82%, 54%)
CMYKcmyk(69.3%, 82.5%, 0%, 46.3%)
CIE-LABlab(19.85, 42.28, -58.88)
CIE-LCHlch(19.85, 72.49, 305.68°)
OKLaboklab(32.8% 0.025 -0.1701)
OKLCHoklch(32.8% 0.172 278.4)
XYZxyz(5.7954, 2.9512, 23.9263)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1889 #778918
analogous
#183E89 #2A1889 #631889
triadic
#2A1889 #892A18 #18892A
tetradic
#2A1889 #89183E #778918 #188963
square
#2A1889 #89183E #778918 #188963
split-complementary
#2A1889 #896318 #3E8918
monochromatic
#0A0621 #1A0F55 #2A1889 #3A21BD #583EDD

Accessibility & contrast

On white

13.20
#2A1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1889
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1889#FFFFFF#000000##FFFFFF
##2A18891.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1889;
/* rgb */ color: rgb(42, 24, 137);
/* oklch */ color: oklch(32.8% 0.172 278.4);
Tailwind
colors: {
  custom: {
    50: '#7359ad',
    500: '#2a1889',
    950: '#000000',
  },
}
SCSS
$custom: #2a1889;
$custom-light: #7359ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1889",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 249.558,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.17192,
    "h": 278.4
  },
  "luminance": 0.02952
}

Semantic roles & 50–950 ramp

primary
#2A1889
secondary
#A9BD40
accent
#ED3BD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1889

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

Preview Lab → · Contrast checker → · Palette generator →

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