#2042AE#2042AE

#2042AE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.8% C 0.177 H 265.6°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2042AE
RGBrgb(32, 66, 174)
HSLhsl(226, 69%, 40%)
HSVhsv(226, 82%, 68%)
CMYKcmyk(81.6%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.39, 28.89, -60.88)
CIE-LCHlch(32.39, 67.39, 295.39°)
OKLaboklab(42.81% -0.0134 -0.1761)
OKLCHoklch(42.81% 0.177 265.6)
XYZxyz(10.1812, 7.2583, 40.9006)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2042AE #AE8C20
analogous
#2089AE #2042AE #4520AE
triadic
#2042AE #AE2042 #42AE20
tetradic
#2042AE #AE2089 #AE8C20 #20AE45
square
#2042AE #AE2089 #AE8C20 #20AE45
split-complementary
#2042AE #AE4520 #89AE20
monochromatic
#0D1B47 #162E7A #2042AE #325AD9 #6684E3

Accessibility & contrast

On white

8.57
#2042AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2042AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2042AE
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2042AE#FFFFFF#000000##FFFFFF
##2042AE1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2042ae;
/* rgb */ color: rgb(32, 66, 174);
/* oklch */ color: oklch(42.8% 0.177 265.6);
Tailwind
colors: {
  custom: {
    50: '#7576c7',
    500: '#2042ae',
    950: '#000000',
  },
}
SCSS
$custom: #2042ae;
$custom-light: #7576c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2042ae",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 225.634,
    "s": 68.932,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.17666,
    "h": 265.6
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#2042AE
secondary
#C8B062
accent
#C23CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2042AE

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

Preview Lab → · Contrast checker → · Palette generator →

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