#1818A1#1818A1

#1818A1 is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.6% C 0.205 H 268.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1818A1
RGBrgb(24, 24, 161)
HSLhsl(240, 74%, 36%)
HSVhsv(240, 85%, 63%)
CMYKcmyk(85.1%, 85.1%, 0%, 36.9%)
CIE-LABlab(21.65, 48.62, -70.76)
CIE-LCHlch(21.65, 85.86, 304.49°)
OKLaboklab(34.59% -0.0042 -0.2048)
OKLCHoklch(34.59% 0.205 268.8)
XYZxyz(7.1341, 3.4198, 33.9954)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1818A1 #A1A118
analogous
#185DA1 #1818A1 #5D18A1
triadic
#1818A1 #A11818 #18A118
tetradic
#1818A1 #A1185D #A1A118 #18A15D
square
#1818A1 #A1185D #A1A118 #18A15D
split-complementary
#1818A1 #A15D18 #5DA118
monochromatic
#080836 #10106C #1818A1 #2020D6 #4F4FE5

Accessibility & contrast

On white

12.47
#1818A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1818A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1818A1
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1818A1#FFFFFF#000000##FFFFFF
##1818A11.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002C9F
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1818a1;
/* rgb */ color: rgb(24, 24, 161);
/* oklch */ color: oklch(34.6% 0.205 268.8);
Tailwind
colors: {
  custom: {
    50: '#735abe',
    500: '#1818a1',
    950: '#000000',
  },
}
SCSS
$custom: #1818a1;
$custom-light: #735abe;
$custom-dark: #000000;
JSON
{
  "hex": "#1818a1",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 240,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.20489,
    "h": 268.8
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#1818A1
secondary
#C7C74E
accent
#F137F1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1818A1

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

Preview Lab → · Contrast checker → · Palette generator →

#1818A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva