#2A18A0#2A18A0

#2A18A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.199 H 275.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2A18A0
RGBrgb(42, 24, 160)
HSLhsl(248, 74%, 36%)
HSVhsv(248, 85%, 63%)
CMYKcmyk(73.8%, 85%, 0%, 37.3%)
CIE-LABlab(22.59, 49.29, -68.56)
CIE-LCHlch(22.59, 84.44, 305.71°)
OKLaboklab(35.49% 0.018 -0.1982)
OKLCHoklch(35.49% 0.199 275.2)
XYZxyz(7.6246, 3.6828, 33.5599)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A18A0 #8EA018
analogous
#184AA0 #2A18A0 #6E18A0
triadic
#2A18A0 #A02A18 #18A02A
tetradic
#2A18A0 #A0184A #8EA018 #18A06E
square
#2A18A0 #A0184A #8EA018 #18A06E
split-complementary
#2A18A0 #A06E18 #4AA018
monochromatic
#0E0836 #1C106B #2A18A0 #3820D5 #624EE4

Accessibility & contrast

On white

12.09
#2A18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A18A0
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A18A0#FFFFFF#000000##FFFFFF
##2A18A01.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a18a0;
/* rgb */ color: rgb(42, 24, 160);
/* oklch */ color: oklch(35.5% 0.199 275.2);
Tailwind
colors: {
  custom: {
    50: '#785bbe',
    500: '#2a18a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a18a0;
$custom-light: #785bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a18a0",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 247.941,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35487,
    "c": 0.19898,
    "h": 275.2
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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