#2042B2#2042B2

#2042B2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.182 H 265.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2042B2
RGBrgb(32, 66, 178)
HSLhsl(226, 70%, 41%)
HSVhsv(226, 82%, 70%)
CMYKcmyk(82%, 62.9%, 0%, 30.2%)
CIE-LABlab(32.74, 30.42, -62.69)
CIE-LCHlch(32.74, 69.68, 295.89°)
OKLaboklab(43.17% -0.0134 -0.1814)
OKLCHoklch(43.17% 0.182 265.8)
XYZxyz(10.5769, 7.4166, 42.9849)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2042B2 #B29020
analogous
#208BB2 #2042B2 #4720B2
triadic
#2042B2 #B22042 #42B220
tetradic
#2042B2 #B2208B #B29020 #20B247
square
#2042B2 #B2208B #B29020 #20B247
split-complementary
#2042B2 #B24720 #8BB220
monochromatic
#0D1C4A #172F7E #2042B2 #355BDB #6885E4

Accessibility & contrast

On white

8.46
#2042B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2042B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2042B2
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2042B2#FFFFFF#000000##FFFFFF
##2042B21.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2042b2;
/* rgb */ color: rgb(32, 66, 178);
/* oklch */ color: oklch(43.2% 0.182 265.8);
Tailwind
colors: {
  custom: {
    50: '#7676ca',
    500: '#2042b2',
    950: '#000000',
  },
}
SCSS
$custom: #2042b2;
$custom-light: #7676ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2042b2",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 226.027,
    "s": 69.524,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43173,
    "c": 0.18194,
    "h": 265.8
  },
  "luminance": 0.07418
}

Semantic roles & 50–950 ramp

primary
#2042B2
secondary
#CAB264
accent
#C33BEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2042B2

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

Preview Lab → · Contrast checker → · Palette generator →

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