#1820A1#1820A1

#1820A1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.199 H 268.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#1820A1
RGBrgb(24, 32, 161)
HSLhsl(236, 74%, 36%)
HSVhsv(236, 85%, 63%)
CMYKcmyk(85.1%, 80.1%, 0%, 36.9%)
CIE-LABlab(23.00, 44.68, -68.53)
CIE-LCHlch(23.00, 81.81, 303.10°)
OKLaboklab(35.53% -0.0056 -0.1985)
OKLCHoklch(35.53% 0.199 268.4)
XYZxyz(7.3240, 3.7995, 34.0587)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1820A1 #A19918
analogous
#1865A1 #1820A1 #5518A1
triadic
#1820A1 #A11820 #20A118
tetradic
#1820A1 #A11865 #A19918 #18A155
square
#1820A1 #A11865 #A19918 #18A155
split-complementary
#1820A1 #A15518 #65A118
monochromatic
#080B36 #10156C #1820A1 #202BD6 #4F57E5

Accessibility & contrast

On white

11.93
#1820A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1820A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1820A1
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1820A1#FFFFFF#000000##FFFFFF
##1820A11.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1820a1;
/* rgb */ color: rgb(24, 32, 161);
/* oklch */ color: oklch(35.5% 0.199 268.4);
Tailwind
colors: {
  custom: {
    50: '#725ebe',
    500: '#1820a1',
    950: '#000000',
  },
}
SCSS
$custom: #1820a1;
$custom-light: #725ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#1820a1",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 236.496,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35525,
    "c": 0.19862,
    "h": 268.4
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#1820A1
secondary
#C7C04E
accent
#E637F1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1820A1

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

Preview Lab → · Contrast checker → · Palette generator →

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