#2A1988#2A1988

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

Color values

HEX#2A1988
RGBrgb(42, 25, 136)
HSLhsl(249, 69%, 32%)
HSVhsv(249, 82%, 53%)
CMYKcmyk(69.1%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.90, 41.48, -58.17)
CIE-LCHlch(19.90, 71.44, 305.49°)
OKLaboklab(32.8% 0.0248 -0.168)
OKLCHoklch(32.8% 0.17 278.4)
XYZxyz(5.7450, 2.9646, 23.5572)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1988 #778819
analogous
#194088 #2A1988 #621988
triadic
#2A1988 #882A19 #19882A
tetradic
#2A1988 #881940 #778819 #198862
square
#2A1988 #881940 #778819 #198862
split-complementary
#2A1988 #886219 #408819
monochromatic
#0A0621 #1A0F54 #2A1988 #3A23BC #5840DC

Accessibility & contrast

On white

13.18
#2A1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1988
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1988#FFFFFF#000000##FFFFFF
##2A19881.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1988;
/* rgb */ color: rgb(42, 25, 136);
/* oklch */ color: oklch(32.8% 0.170 278.4);
Tailwind
colors: {
  custom: {
    50: '#7359ac',
    500: '#2a1988',
    950: '#000000',
  },
}
SCSS
$custom: #2a1988;
$custom-light: #7359ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1988",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 249.189,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32798,
    "c": 0.16983,
    "h": 278.4
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#2A1988
secondary
#A9BB41
accent
#EC3CD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1988

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

Preview Lab → · Contrast checker → · Palette generator →

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