#2040B1#2040B1

#2040B1 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.183 H 266.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2040B1
RGBrgb(32, 64, 177)
HSLhsl(227, 69%, 41%)
HSVhsv(227, 82%, 69%)
CMYKcmyk(81.9%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.14, 31.36, -63.07)
CIE-LCHlch(32.14, 70.44, 296.44°)
OKLaboklab(42.7% -0.0123 -0.1826)
OKLCHoklch(42.7% 0.183 266.1)
XYZxyz(10.3621, 7.1470, 42.4198)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040B1 #B19120
analogous
#2088B1 #2040B1 #4920B1
triadic
#2040B1 #B12040 #40B120
tetradic
#2040B1 #B12088 #B19120 #20B149
square
#2040B1 #B12088 #B19120 #20B149
split-complementary
#2040B1 #B14920 #88B120
monochromatic
#0D1B49 #172D7D #2040B1 #3459DA #6883E4

Accessibility & contrast

On white

8.64
#2040B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2040B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040B1
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040B1#FFFFFF#000000##FFFFFF
##2040B11.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2040b1;
/* rgb */ color: rgb(32, 64, 177);
/* oklch */ color: oklch(42.7% 0.183 266.1);
Tailwind
colors: {
  custom: {
    50: '#7674c9',
    500: '#2040b1',
    950: '#000000',
  },
}
SCSS
$custom: #2040b1;
$custom-light: #7674c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2040b1",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 226.759,
    "s": 69.378,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42703,
    "c": 0.18301,
    "h": 266.1
  },
  "luminance": 0.07148
}

Semantic roles & 50–950 ramp

primary
#2040B1
secondary
#C9B364
accent
#C53CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2040B1

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

Preview Lab → · Contrast checker → · Palette generator →

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