#2A1B85#2A1B85

#2A1B85 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.164 H 278.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2A1B85
RGBrgb(42, 27, 133)
HSLhsl(248, 66%, 31%)
HSVhsv(248, 80%, 52%)
CMYKcmyk(68.4%, 79.7%, 0%, 47.8%)
CIE-LABlab(19.92, 39.49, -56.25)
CIE-LCHlch(19.92, 68.73, 305.07°)
OKLaboklab(32.71% 0.0246 -0.1625)
OKLCHoklch(32.71% 0.164 278.6)
XYZxyz(5.5791, 2.9691, 22.4648)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B85 #76851B
analogous
#1B4185 #2A1B85 #5F1B85
triadic
#2A1B85 #852A1B #1B852A
tetradic
#2A1B85 #851B41 #76851B #1B855F
square
#2A1B85 #851B41 #76851B #1B855F
split-complementary
#2A1B85 #855F1B #41851B
monochromatic
#0A061F #1A1152 #2A1B85 #3A25B8 #5742D9

Accessibility & contrast

On white

13.17
#2A1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B85
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B85#FFFFFF#000000##FFFFFF
##2A1B851.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1b85;
/* rgb */ color: rgb(42, 27, 133);
/* oklch */ color: oklch(32.7% 0.164 278.6);
Tailwind
colors: {
  custom: {
    50: '#725aaa',
    500: '#2a1b85',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b85;
$custom-light: #725aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b85",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 248.491,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32711,
    "c": 0.16431,
    "h": 278.6
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#2A1B85
secondary
#A8B844
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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