#2018A1#2018A1

#2018A1 is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 35.0% C 0.203 H 271.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2018A1
RGBrgb(32, 24, 161)
HSLhsl(244, 74%, 36%)
HSVhsv(244, 85%, 63%)
CMYKcmyk(80.1%, 85.1%, 0%, 36.9%)
CIE-LABlab(22.06, 48.99, -70.07)
CIE-LCHlch(22.06, 85.50, 304.96°)
OKLaboklab(34.98% 0.0046 -0.2027)
OKLCHoklch(34.98% 0.203 271.3)
XYZxyz(7.3532, 3.5327, 34.0056)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2018A1 #99A118
analogous
#1855A1 #2018A1 #6518A1
triadic
#2018A1 #A12018 #18A120
tetradic
#2018A1 #A11855 #99A118 #18A165
square
#2018A1 #A11855 #99A118 #18A165
split-complementary
#2018A1 #A16518 #55A118
monochromatic
#0B0836 #15106C #2018A1 #2B20D6 #574FE5

Accessibility & contrast

On white

12.30
#2018A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2018A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2018A1
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2018A1#FFFFFF#000000##FFFFFF
##2018A11.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002E9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2018a1;
/* rgb */ color: rgb(32, 24, 161);
/* oklch */ color: oklch(35.0% 0.203 271.3);
Tailwind
colors: {
  custom: {
    50: '#755abe',
    500: '#2018a1',
    950: '#000000',
  },
}
SCSS
$custom: #2018a1;
$custom-light: #755abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2018a1",
  "rgb": {
    "r": 32,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 243.504,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.20278,
    "h": 271.3
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#2018A1
secondary
#C0C74E
accent
#F137E6
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2018A1

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

Preview Lab → · Contrast checker → · Palette generator →

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