#2A1BA5#2A1BA5

#2A1BA5 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.4% C 0.203 H 274.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2A1BA5
RGBrgb(42, 27, 165)
HSLhsl(247, 72%, 38%)
HSVhsv(247, 84%, 65%)
CMYKcmyk(74.5%, 83.6%, 0%, 35.3%)
CIE-LABlab(23.64, 49.48, -69.86)
CIE-LCHlch(23.64, 85.60, 305.31°)
OKLaboklab(36.38% 0.0156 -0.202)
OKLCHoklch(36.38% 0.203 274.4)
XYZxyz(8.1361, 3.9919, 35.9317)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1BA5 #96A51B
analogous
#1B51A5 #2A1BA5 #6F1BA5
triadic
#2A1BA5 #A52A1B #1BA52A
tetradic
#2A1BA5 #A51B51 #96A51B #1BA56F
square
#2A1BA5 #A51B51 #96A51B #1BA56F
split-complementary
#2A1BA5 #A56F1B #51A51B
monochromatic
#0F0A3C #1D1270 #2A1BA5 #3724DA #6657E3

Accessibility & contrast

On white

11.68
#2A1BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A1BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1BA5
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1BA5#FFFFFF#000000##FFFFFF
##2A1BA51.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA9
Deuteranopia (green-blind)
#0032A3
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a1ba5;
/* rgb */ color: rgb(42, 27, 165);
/* oklch */ color: oklch(36.4% 0.203 274.4);
Tailwind
colors: {
  custom: {
    50: '#795dc1',
    500: '#2a1ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2a1ba5;
$custom-light: #795dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1ba5",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 165
  },
  "hsl": {
    "h": 246.522,
    "s": 71.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36384,
    "c": 0.20259,
    "h": 274.4
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#2A1BA5
secondary
#BAC755
accent
#EF39DB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2A1BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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