#2A1B79#2A1B79

#2A1B79 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.149 H 280.7°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2A1B79
RGBrgb(42, 27, 121)
HSLhsl(250, 64%, 29%)
HSVhsv(250, 78%, 47%)
CMYKcmyk(65.3%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.61, 35.59, -50.79)
CIE-LCHlch(18.61, 62.02, 305.02°)
OKLaboklab(31.4% 0.0278 -0.1465)
OKLCHoklch(31.4% 0.149 280.7)
XYZxyz(4.7969, 2.6562, 18.3454)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B79 #6A791B
analogous
#1B3B79 #2A1B79 #591B79
triadic
#2A1B79 #792A1B #1B792A
tetradic
#2A1B79 #791B3B #6A791B #1B7959
square
#2A1B79 #791B3B #6A791B #1B7959
split-complementary
#2A1B79 #79591B #3B791B
monochromatic
#090619 #191047 #2A1B79 #3B26AB #533BD3

Accessibility & contrast

On white

13.71
#2A1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B79
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B79#FFFFFF#000000##FFFFFF
##2A1B791.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1b79;
/* rgb */ color: rgb(42, 27, 121);
/* oklch */ color: oklch(31.4% 0.149 280.7);
Tailwind
colors: {
  custom: {
    50: '#6f5aa1',
    500: '#2a1b79',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b79;
$custom-light: #6f5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b79",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 249.574,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31401,
    "c": 0.14916,
    "h": 280.7
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#2A1B79
secondary
#9CAD43
accent
#E741CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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