#2A1C99#2A1C99

#2A1C99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.1% C 0.188 H 275.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2A1C99
RGBrgb(42, 28, 153)
HSLhsl(247, 69%, 35%)
HSVhsv(247, 82%, 60%)
CMYKcmyk(72.5%, 81.7%, 0%, 40%)
CIE-LABlab(22.38, 45.32, -64.62)
CIE-LCHlch(22.38, 78.93, 305.04°)
OKLaboklab(35.1% 0.0186 -0.1868)
OKLCHoklch(35.1% 0.188 275.7)
XYZxyz(7.1180, 3.6220, 30.4548)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C99 #8B991C
analogous
#1C4C99 #2A1C99 #681C99
triadic
#2A1C99 #992A1C #1C992A
tetradic
#2A1C99 #991C4C #8B991C #1C9968
square
#2A1C99 #991C4C #8B991C #1C9968
split-complementary
#2A1C99 #99681C #4C991C
monochromatic
#0E0932 #1C1365 #2A1C99 #3825CD #6050DF

Accessibility & contrast

On white

12.18
#2A1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1C99
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C99#FFFFFF#000000##FFFFFF
##2A1C991.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003097
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a1c99;
/* rgb */ color: rgb(42, 28, 153);
/* oklch */ color: oklch(35.1% 0.188 275.7);
Tailwind
colors: {
  custom: {
    50: '#765cb8',
    500: '#2a1c99',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c99;
$custom-light: #765cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c99",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 246.72,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35097,
    "c": 0.18774,
    "h": 275.7
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#2A1C99
secondary
#B5C24F
accent
#EC3CD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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