#2A1C9E#2A1C9E

#2A1C9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.194 H 275.1°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2A1C9E
RGBrgb(42, 28, 158)
HSLhsl(246, 70%, 36%)
HSVhsv(246, 82%, 62%)
CMYKcmyk(73.4%, 82.3%, 0%, 38%)
CIE-LABlab(22.97, 46.88, -66.72)
CIE-LCHlch(22.97, 81.54, 305.09°)
OKLaboklab(35.67% 0.0172 -0.1929)
OKLCHoklch(35.67% 0.194 275.1)
XYZxyz(7.5396, 3.7906, 32.6754)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C9E #909E1C
analogous
#1C4F9E #2A1C9E #6B1C9E
triadic
#2A1C9E #9E2A1C #1C9E2A
tetradic
#2A1C9E #9E1C4F #909E1C #1C9E6B
square
#2A1C9E #9E1C4F #909E1C #1C9E6B
split-complementary
#2A1C9E #9E6B1C #4F9E1C
monochromatic
#0E0A36 #1C136A #2A1C9E #3825D2 #6354E1

Accessibility & contrast

On white

11.94
#2A1C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A1C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C9E
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C9E#FFFFFF#000000##FFFFFF
##2A1C9E1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a1c9e;
/* rgb */ color: rgb(42, 28, 158);
/* oklch */ color: oklch(35.7% 0.194 275.1);
Tailwind
colors: {
  custom: {
    50: '#775dbc',
    500: '#2a1c9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c9e;
$custom-light: #775dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c9e",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 246.462,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35674,
    "c": 0.19366,
    "h": 275.1
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#2A1C9E
secondary
#B7C452
accent
#ED3BDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2A1C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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