#2142AE#2142AE

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

Color values

HEX#2142AE
RGBrgb(33, 66, 174)
HSLhsl(226, 68%, 41%)
HSVhsv(226, 81%, 68%)
CMYKcmyk(81%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.42, 28.98, -60.82)
CIE-LCHlch(32.42, 67.37, 295.48°)
OKLaboklab(42.84% -0.0126 -0.176)
OKLCHoklch(42.84% 0.176 265.9)
XYZxyz(10.2127, 7.2745, 40.9021)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2142AE #AE8D21
analogous
#2189AE #2142AE #4621AE
triadic
#2142AE #AE2142 #42AE21
tetradic
#2142AE #AE2189 #AE8D21 #21AE46
square
#2142AE #AE2189 #AE8D21 #21AE46
split-complementary
#2142AE #AE4621 #89AE21
monochromatic
#0D1B47 #172E7B #2142AE #345AD8 #6784E2

Accessibility & contrast

On white

8.55
#2142AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2142AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2142AE
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2142AE#FFFFFF#000000##FFFFFF
##2142AE1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.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: #2142ae;
/* rgb */ color: rgb(33, 66, 174);
/* oklch */ color: oklch(42.8% 0.176 265.9);
Tailwind
colors: {
  custom: {
    50: '#7576c7',
    500: '#2142ae',
    950: '#000000',
  },
}
SCSS
$custom: #2142ae;
$custom-light: #7576c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2142ae",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 225.957,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42843,
    "c": 0.17641,
    "h": 265.9
  },
  "luminance": 0.07276
}

Semantic roles & 50–950 ramp

primary
#2142AE
secondary
#C8B063
accent
#C23DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2142AE

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

Preview Lab → · Contrast checker → · Palette generator →

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