#2040A2#2040A2

#2040A2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.163 H 265.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2040A2
RGBrgb(32, 64, 162)
HSLhsl(225, 67%, 38%)
HSVhsv(225, 80%, 64%)
CMYKcmyk(80.2%, 60.5%, 0%, 36.5%)
CIE-LABlab(30.83, 25.59, -56.22)
CIE-LCHlch(30.83, 61.77, 294.47°)
OKLaboklab(41.33% -0.0123 -0.1625)
OKLCHoklch(41.33% 0.163 265.7)
XYZxyz(8.9483, 6.5815, 34.9741)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040A2 #A28220
analogous
#2081A2 #2040A2 #4120A2
triadic
#2040A2 #A22040 #40A220
tetradic
#2040A2 #A22081 #A28220 #20A241
square
#2040A2 #A22081 #A28220 #20A241
split-complementary
#2040A2 #A24120 #81A220
monochromatic
#0C183C #162C6F #2040A2 #2A54D5 #5D7DDF

Accessibility & contrast

On white

9.07
#2040A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2040A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040A2
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040A2#FFFFFF#000000##FFFFFF
##2040A21.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2040a2;
/* rgb */ color: rgb(32, 64, 162);
/* oklch */ color: oklch(41.3% 0.163 265.7);
Tailwind
colors: {
  custom: {
    50: '#7274be',
    500: '#2040a2',
    950: '#000000',
  },
}
SCSS
$custom: #2040a2;
$custom-light: #7274be;
$custom-dark: #000000;
JSON
{
  "hex": "#2040a2",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 225.231,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41331,
    "c": 0.16299,
    "h": 265.7
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#2040A2
secondary
#C3AA5A
accent
#C03EEA
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2040A2

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

Preview Lab → · Contrast checker → · Palette generator →

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