#2A1B78#2A1B78

#2A1B78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.148 H 280.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2A1B78
RGBrgb(42, 27, 120)
HSLhsl(250, 63%, 29%)
HSVhsv(250, 78%, 47%)
CMYKcmyk(65%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.50, 35.26, -50.32)
CIE-LCHlch(18.50, 61.45, 305.02°)
OKLaboklab(31.29% 0.0281 -0.1452)
OKLCHoklch(31.29% 0.148 280.9)
XYZxyz(4.7359, 2.6318, 18.0241)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B78 #69781B
analogous
#1B3B78 #2A1B78 #591B78
triadic
#2A1B78 #782A1B #1B782A
tetradic
#2A1B78 #781B3B #69781B #1B7859
square
#2A1B78 #781B3B #69781B #1B7859
split-complementary
#2A1B78 #78591B #3B781B
monochromatic
#090619 #191046 #2A1B78 #3B26AA #533BD3

Accessibility & contrast

On white

13.76
#2A1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1B78
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B78#FFFFFF#000000##FFFFFF
##2A1B781.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1b78;
/* rgb */ color: rgb(42, 27, 120);
/* oklch */ color: oklch(31.3% 0.148 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f59a0',
    500: '#2a1b78',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b78;
$custom-light: #6f59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b78",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 249.677,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31294,
    "c": 0.14787,
    "h": 280.9
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#2A1B78
secondary
#9BAC43
accent
#E641CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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