#2A1C8C#2A1C8C

#2A1C8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.172 H 277.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2A1C8C
RGBrgb(42, 28, 140)
HSLhsl(248, 67%, 33%)
HSVhsv(248, 80%, 55%)
CMYKcmyk(70%, 80%, 0%, 45.1%)
CIE-LABlab(20.89, 41.21, -59.04)
CIE-LCHlch(20.89, 72.00, 304.92°)
OKLaboklab(33.62% 0.0222 -0.1706)
OKLCHoklch(33.62% 0.172 277.4)
XYZxyz(6.1022, 3.2157, 25.1050)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1C8C #7E8C1C
analogous
#1C468C #2A1C8C #621C8C
triadic
#2A1C8C #8C2A1C #1C8C2A
tetradic
#2A1C8C #8C1C46 #7E8C1C #1C8C62
square
#2A1C8C #8C1C46 #7E8C1C #1C8C62
split-complementary
#2A1C8C #8C621C #468C1C
monochromatic
#0B0826 #1B1259 #2A1C8C #3926BF #5A48DA

Accessibility & contrast

On white

12.78
#2A1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1C8C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1C8C#FFFFFF#000000##FFFFFF
##2A1C8C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1c8c;
/* rgb */ color: rgb(42, 28, 140);
/* oklch */ color: oklch(33.6% 0.172 277.4);
Tailwind
colors: {
  custom: {
    50: '#735baf',
    500: '#2a1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2a1c8c;
$custom-light: #735baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1c8c",
  "rgb": {
    "r": 42,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 247.5,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3362,
    "c": 0.17203,
    "h": 277.4
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#2A1C8C
secondary
#AEBC48
accent
#EA3ED4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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