#2A18A1#2A18A1

#2A18A1 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.6% C 0.200 H 275.1°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2A18A1
RGBrgb(42, 24, 161)
HSLhsl(248, 74%, 36%)
HSVhsv(248, 85%, 63%)
CMYKcmyk(73.9%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.72, 49.58, -68.96)
CIE-LCHlch(22.72, 84.94, 305.72°)
OKLaboklab(35.61% 0.0177 -0.1993)
OKLCHoklch(35.61% 0.2 275.1)
XYZxyz(7.7124, 3.7180, 34.0225)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A18A1 #8FA118
analogous
#184BA1 #2A18A1 #6F18A1
triadic
#2A18A1 #A12A18 #18A12A
tetradic
#2A18A1 #A1184B #8FA118 #18A16F
square
#2A18A1 #A1184B #8FA118 #18A16F
split-complementary
#2A18A1 #A16F18 #4BA118
monochromatic
#0E0836 #1C106C #2A18A1 #3820D6 #624FE5

Accessibility & contrast

On white

12.04
#2A18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A18A1
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A18A1#FFFFFF#000000##FFFFFF
##2A18A11.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a18a1;
/* rgb */ color: rgb(42, 24, 161);
/* oklch */ color: oklch(35.6% 0.200 275.1);
Tailwind
colors: {
  custom: {
    50: '#785bbe',
    500: '#2a18a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a18a1;
$custom-light: #785bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a18a1",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 247.883,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35606,
    "c": 0.20013,
    "h": 275.1
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

primary
#2A18A1
secondary
#B7C74E
accent
#F137D8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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