#2A1B98#2A1B98

#2A1B98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.9% C 0.187 H 275.9°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1B98
RGBrgb(42, 27, 152)
HSLhsl(247, 70%, 35%)
HSVhsv(247, 82%, 60%)
CMYKcmyk(72.4%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.10, 45.50, -64.48)
CIE-LCHlch(22.10, 78.91, 305.21°)
OKLaboklab(34.87% 0.0193 -0.1864)
OKLCHoklch(34.87% 0.187 275.9)
XYZxyz(7.0124, 3.5424, 30.0139)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B98 #89981B
analogous
#1B4B98 #2A1B98 #681B98
triadic
#2A1B98 #982A1B #1B982A
tetradic
#2A1B98 #981B4B #89981B #1B9868
square
#2A1B98 #981B4B #89981B #1B9868
split-complementary
#2A1B98 #98681B #4B981B
monochromatic
#0D0930 #1C1264 #2A1B98 #3824CC #5F4EE0

Accessibility & contrast

On white

12.29
#2A1B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A1B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B98
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B98#FFFFFF#000000##FFFFFF
##2A1B981.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1b98;
/* rgb */ color: rgb(42, 27, 152);
/* oklch */ color: oklch(34.9% 0.187 275.9);
Tailwind
colors: {
  custom: {
    50: '#765cb8',
    500: '#2a1b98',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b98;
$custom-light: #765cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b98",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 247.2,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.18737,
    "h": 275.9
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#2A1B98
secondary
#B4C24D
accent
#ED3BD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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