#2A1B76#2A1B76

#2A1B76 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.145 H 281.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2A1B76
RGBrgb(42, 27, 118)
HSLhsl(250, 63%, 28%)
HSVhsv(250, 77%, 46%)
CMYKcmyk(64.4%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.29, 34.60, -49.39)
CIE-LCHlch(18.29, 60.30, 305.02°)
OKLaboklab(31.08% 0.0286 -0.1424)
OKLCHoklch(31.08% 0.145 281.3)
XYZxyz(4.6158, 2.5838, 17.3915)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B76 #67761B
analogous
#1B3976 #2A1B76 #571B76
triadic
#2A1B76 #762A1B #1B762A
tetradic
#2A1B76 #761B39 #67761B #1B7657
square
#2A1B76 #761B39 #67761B #1B7657
split-complementary
#2A1B76 #76571B #39761B
monochromatic
#090619 #181044 #2A1B76 #3C26A8 #533AD2

Accessibility & contrast

On white

13.84
#2A1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B76
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B76#FFFFFF#000000##FFFFFF
##2A1B761.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1b76;
/* rgb */ color: rgb(42, 27, 118);
/* oklch */ color: oklch(31.1% 0.145 281.3);
Tailwind
colors: {
  custom: {
    50: '#6e599e',
    500: '#2a1b76',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b76;
$custom-light: #6e599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b76",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 249.89,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31081,
    "c": 0.14529,
    "h": 281.3
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#2A1B76
secondary
#99AA42
accent
#E642CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2A1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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