#2A1986#2A1986

#2A1986 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.167 H 278.7°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2A1986
RGBrgb(42, 25, 134)
HSLhsl(249, 69%, 31%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(68.7%, 81.3%, 0%, 47.5%)
CIE-LABlab(19.67, 40.85, -57.29)
CIE-LCHlch(19.67, 70.36, 305.49°)
OKLaboklab(32.57% 0.0254 -0.1655)
OKLCHoklch(32.57% 0.167 278.7)
XYZxyz(5.6042, 2.9083, 22.8157)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1986 #758619
analogous
#193E86 #2A1986 #601986
triadic
#2A1986 #862A19 #19862A
tetradic
#2A1986 #86193E #758619 #198660
square
#2A1986 #86193E #758619 #198660
split-complementary
#2A1986 #866019 #3E8619
monochromatic
#0A061F #1A0F52 #2A1986 #3A23BA #573EDB

Accessibility & contrast

On white

13.28
#2A1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1986
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1986#FFFFFF#000000##FFFFFF
##2A19861.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1986;
/* rgb */ color: rgb(42, 25, 134);
/* oklch */ color: oklch(32.6% 0.167 278.7);
Tailwind
colors: {
  custom: {
    50: '#7259aa',
    500: '#2a1986',
    950: '#000000',
  },
}
SCSS
$custom: #2a1986;
$custom-light: #7259aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1986",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 249.358,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32572,
    "c": 0.1674,
    "h": 278.7
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#2A1986
secondary
#A7BA41
accent
#EB3CD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1986

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

Preview Lab → · Contrast checker → · Palette generator →

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