#2A1B99#2A1B99

#2A1B99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.189 H 275.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2A1B99
RGBrgb(42, 27, 153)
HSLhsl(247, 70%, 35%)
HSVhsv(247, 82%, 60%)
CMYKcmyk(72.5%, 82.4%, 0%, 40%)
CIE-LABlab(22.21, 45.81, -64.90)
CIE-LCHlch(22.21, 79.44, 305.22°)
OKLaboklab(34.98% 0.019 -0.1876)
OKLCHoklch(34.98% 0.189 275.8)
XYZxyz(7.0947, 3.5753, 30.4470)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B99 #8A991B
analogous
#1B4B99 #2A1B99 #691B99
triadic
#2A1B99 #992A1B #1B992A
tetradic
#2A1B99 #991B4B #8A991B #1B9969
square
#2A1B99 #991B4B #8A991B #1B9969
split-complementary
#2A1B99 #99691B #4B991B
monochromatic
#0D0931 #1C1265 #2A1B99 #3824CD #604FE0

Accessibility & contrast

On white

12.24
#2A1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A1B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B99
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B99#FFFFFF#000000##FFFFFF
##2A1B991.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9C
Deuteranopia (green-blind)
#002F97
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1b99;
/* rgb */ color: rgb(42, 27, 153);
/* oklch */ color: oklch(35.0% 0.189 275.8);
Tailwind
colors: {
  custom: {
    50: '#765cb8',
    500: '#2a1b99',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b99;
$custom-light: #765cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b99",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 247.143,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34982,
    "c": 0.18856,
    "h": 275.8
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#2A1B99
secondary
#B4C24E
accent
#ED3BD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1B99

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

Preview Lab → · Contrast checker → · Palette generator →

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