#2042A5#2042A5

#2042A5 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.165 H 265.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2042A5
RGBrgb(32, 66, 165)
HSLhsl(225, 68%, 39%)
HSVhsv(225, 81%, 65%)
CMYKcmyk(80.6%, 60%, 0%, 35.3%)
CIE-LABlab(31.62, 25.41, -56.74)
CIE-LCHlch(31.62, 62.17, 294.12°)
OKLaboklab(42% -0.0135 -0.164)
OKLCHoklch(42% 0.165 265.3)
XYZxyz(9.3330, 6.9190, 36.4336)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2042A5 #A58320
analogous
#2084A5 #2042A5 #4020A5
triadic
#2042A5 #A52042 #42A520
tetradic
#2042A5 #A52084 #A58320 #20A540
square
#2042A5 #A52084 #A58320 #20A540
split-complementary
#2042A5 #A54020 #84A520
monochromatic
#0C193E #162D72 #2042A5 #2C58D6 #5F80E0

Accessibility & contrast

On white

8.81
#2042A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2042A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2042A5
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2042A5#FFFFFF#000000##FFFFFF
##2042A51.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2042a5;
/* rgb */ color: rgb(32, 66, 165);
/* oklch */ color: oklch(42.0% 0.165 265.3);
Tailwind
colors: {
  custom: {
    50: '#7275c1',
    500: '#2042a5',
    950: '#000000',
  },
}
SCSS
$custom: #2042a5;
$custom-light: #7275c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2042a5",
  "rgb": {
    "r": 32,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 224.662,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41998,
    "c": 0.16458,
    "h": 265.3
  },
  "luminance": 0.0692
}

Semantic roles & 50–950 ramp

primary
#2042A5
secondary
#C5AA5C
accent
#BE3DEA
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2042A5

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

Preview Lab → · Contrast checker → · Palette generator →

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