#2A1B86#2A1B86

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

Color values

HEX#2A1B86
RGBrgb(42, 27, 134)
HSLhsl(248, 66%, 32%)
HSVhsv(248, 80%, 53%)
CMYKcmyk(68.7%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.03, 39.81, -56.69)
CIE-LCHlch(20.03, 69.28, 305.08°)
OKLaboklab(32.82% 0.0243 -0.1638)
OKLCHoklch(32.82% 0.166 278.5)
XYZxyz(5.6485, 2.9969, 22.8304)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B86 #77861B
analogous
#1B4286 #2A1B86 #601B86
triadic
#2A1B86 #862A1B #1B862A
tetradic
#2A1B86 #861B42 #77861B #1B8660
square
#2A1B86 #861B42 #77861B #1B8660
split-complementary
#2A1B86 #86601B #42861B
monochromatic
#0A0620 #1A1153 #2A1B86 #3A25B9 #5842D9

Accessibility & contrast

On white

13.13
#2A1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B86
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B86#FFFFFF#000000##FFFFFF
##2A1B861.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1b86;
/* rgb */ color: rgb(42, 27, 134);
/* oklch */ color: oklch(32.8% 0.166 278.5);
Tailwind
colors: {
  custom: {
    50: '#725aaa',
    500: '#2a1b86',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b86;
$custom-light: #725aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b86",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 248.411,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32822,
    "c": 0.16556,
    "h": 278.5
  },
  "luminance": 0.02997
}

Semantic roles & 50–950 ramp

primary
#2A1B86
secondary
#A9B944
accent
#E93ED1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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