#2A1B77#2A1B77

#2A1B77 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.147 H 281.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2A1B77
RGBrgb(42, 27, 119)
HSLhsl(250, 63%, 29%)
HSVhsv(250, 77%, 47%)
CMYKcmyk(64.7%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.40, 34.93, -49.86)
CIE-LCHlch(18.40, 60.88, 305.02°)
OKLaboklab(31.19% 0.0283 -0.1438)
OKLCHoklch(31.19% 0.147 281.1)
XYZxyz(4.6755, 2.6077, 17.7061)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B77 #68771B
analogous
#1B3A77 #2A1B77 #581B77
triadic
#2A1B77 #772A1B #1B772A
tetradic
#2A1B77 #771B3A #68771B #1B7758
square
#2A1B77 #771B3A #68771B #1B7758
split-complementary
#2A1B77 #77581B #3A771B
monochromatic
#090619 #181045 #2A1B77 #3C26A9 #533AD2

Accessibility & contrast

On white

13.80
#2A1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B77
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B77#FFFFFF#000000##FFFFFF
##2A1B771.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1b77;
/* rgb */ color: rgb(42, 27, 119);
/* oklch */ color: oklch(31.2% 0.147 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f599f',
    500: '#2a1b77',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b77;
$custom-light: #6f599f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b77",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 249.783,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31188,
    "c": 0.14658,
    "h": 281.1
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2A1B77
secondary
#9AAB42
accent
#E642CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2A1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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