#2A1888#2A1888

#2A1888 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.171 H 278.5°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#2A1888
RGBrgb(42, 24, 136)
HSLhsl(250, 70%, 31%)
HSVhsv(250, 82%, 53%)
CMYKcmyk(69.1%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.73, 41.97, -58.45)
CIE-LCHlch(19.73, 71.96, 305.68°)
OKLaboklab(32.68% 0.0253 -0.1688)
OKLCHoklch(32.68% 0.171 278.5)
XYZxyz(5.7240, 2.9226, 23.5502)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1888 #768818
analogous
#183E88 #2A1888 #621888
triadic
#2A1888 #882A18 #18882A
tetradic
#2A1888 #88183E #768818 #188862
square
#2A1888 #88183E #768818 #188862
split-complementary
#2A1888 #886218 #3E8818
monochromatic
#0A0620 #1A0F54 #2A1888 #3A21BC #573EDD

Accessibility & contrast

On white

13.25
#2A1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1888
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1888#FFFFFF#000000##FFFFFF
##2A18881.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1888;
/* rgb */ color: rgb(42, 24, 136);
/* oklch */ color: oklch(32.7% 0.171 278.5);
Tailwind
colors: {
  custom: {
    50: '#7359ac',
    500: '#2a1888',
    950: '#000000',
  },
}
SCSS
$custom: #2a1888;
$custom-light: #7359ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1888",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 249.643,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.17071,
    "h": 278.5
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#2A1888
secondary
#A8BC40
accent
#ED3BD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1888

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

Preview Lab → · Contrast checker → · Palette generator →

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