#2042A2#2042A2

#2042A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.160 H 265.1°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2042A2
RGBrgb(32, 66, 162)
HSLhsl(224, 67%, 38%)
HSVhsv(224, 80%, 64%)
CMYKcmyk(80.2%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.37, 24.24, -55.34)
CIE-LCHlch(31.37, 60.42, 293.65°)
OKLaboklab(41.73% -0.0136 -0.1599)
OKLCHoklch(41.73% 0.16 265.1)
XYZxyz(9.0632, 6.8111, 35.0124)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2042A2 #A28020
analogous
#2083A2 #2042A2 #3F20A2
triadic
#2042A2 #A22042 #42A220
tetradic
#2042A2 #A22083 #A28020 #20A23F
square
#2042A2 #A22083 #A28020 #20A23F
split-complementary
#2042A2 #A23F20 #83A220
monochromatic
#0C183C #162D6F #2042A2 #2A57D5 #5D7FDF

Accessibility & contrast

On white

8.89
#2042A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2042A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2042A2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2042A2#FFFFFF#000000##FFFFFF
##2042A21.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2042a2;
/* rgb */ color: rgb(32, 66, 162);
/* oklch */ color: oklch(41.7% 0.160 265.1);
Tailwind
colors: {
  custom: {
    50: '#7275be',
    500: '#2042a2',
    950: '#000000',
  },
}
SCSS
$custom: #2042a2;
$custom-light: #7275be;
$custom-dark: #000000;
JSON
{
  "hex": "#2042a2",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 224.308,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41734,
    "c": 0.16049,
    "h": 265.1
  },
  "luminance": 0.06812
}

Semantic roles & 50–950 ramp

primary
#2042A2
secondary
#C3A85A
accent
#BD3EEA
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2042A2

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

Preview Lab → · Contrast checker → · Palette generator →

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