#2040A0#2040A0

#2040A0 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.160 H 265.6°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#2040A0
RGBrgb(32, 64, 160)
HSLhsl(225, 67%, 38%)
HSVhsv(225, 80%, 63%)
CMYKcmyk(80%, 60%, 0%, 37.3%)
CIE-LABlab(30.67, 24.81, -55.29)
CIE-LCHlch(30.67, 60.60, 294.17°)
OKLaboklab(41.15% -0.0124 -0.1598)
OKLCHoklch(41.15% 0.16 265.6)
XYZxyz(8.7720, 6.5109, 34.0453)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040A0 #A08020
analogous
#2080A0 #2040A0 #4020A0
triadic
#2040A0 #A02040 #40A020
tetradic
#2040A0 #A02080 #A08020 #20A040
square
#2040A0 #A02080 #A08020 #20A040
split-complementary
#2040A0 #A04020 #80A020
monochromatic
#0C173A #162C6D #2040A0 #2A54D3 #5C7DDE

Accessibility & contrast

On white

9.12
#2040A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2040A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040A0
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040A0#FFFFFF#000000##FFFFFF
##2040A01.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2040a0;
/* rgb */ color: rgb(32, 64, 160);
/* oklch */ color: oklch(41.2% 0.160 265.6);
Tailwind
colors: {
  custom: {
    50: '#7174bd',
    500: '#2040a0',
    950: '#000000',
  },
}
SCSS
$custom: #2040a0;
$custom-light: #7174bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2040a0",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 225,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41154,
    "c": 0.16026,
    "h": 265.6
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#2040A0
secondary
#C3A859
accent
#BF3EEA
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2040A0

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

Preview Lab → · Contrast checker → · Palette generator →

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