#2040AE#2040AE

#2040AE is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.179 H 266.1°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#2040AE
RGBrgb(32, 64, 174)
HSLhsl(226, 69%, 40%)
HSVhsv(226, 82%, 68%)
CMYKcmyk(81.6%, 63.2%, 0%, 31.8%)
CIE-LABlab(31.87, 30.22, -61.72)
CIE-LCHlch(31.87, 68.72, 296.09°)
OKLaboklab(42.42% -0.0123 -0.1786)
OKLCHoklch(42.42% 0.179 266.1)
XYZxyz(10.0664, 7.0287, 40.8623)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040AE #AE8E20
analogous
#2087AE #2040AE #4720AE
triadic
#2040AE #AE2040 #40AE20
tetradic
#2040AE #AE2087 #AE8E20 #20AE47
square
#2040AE #AE2087 #AE8E20 #20AE47
split-complementary
#2040AE #AE4720 #87AE20
monochromatic
#0D1A47 #162D7A #2040AE #3258D9 #6682E3

Accessibility & contrast

On white

8.73
#2040AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2040AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040AE
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040AE#FFFFFF#000000##FFFFFF
##2040AE1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2040ae;
/* rgb */ color: rgb(32, 64, 174);
/* oklch */ color: oklch(42.4% 0.179 266.1);
Tailwind
colors: {
  custom: {
    50: '#7574c7',
    500: '#2040ae',
    950: '#000000',
  },
}
SCSS
$custom: #2040ae;
$custom-light: #7574c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2040ae",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 226.479,
    "s": 68.932,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42423,
    "c": 0.17907,
    "h": 266.1
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#2040AE
secondary
#C8B162
accent
#C43CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2040AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2040AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva