#2040B3#2040B3

#2040B3 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.186 H 266.2°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2040B3
RGBrgb(32, 64, 179)
HSLhsl(227, 70%, 41%)
HSVhsv(227, 82%, 70%)
CMYKcmyk(82.1%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.32, 32.12, -63.97)
CIE-LCHlch(32.32, 71.58, 296.66°)
OKLaboklab(42.89% -0.0123 -0.1852)
OKLCHoklch(42.89% 0.186 266.2)
XYZxyz(10.5629, 7.2273, 43.4774)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2040B3 #B39320
analogous
#208AB3 #2040B3 #4A20B3
triadic
#2040B3 #B32040 #40B320
tetradic
#2040B3 #B3208A #B39320 #20B34A
square
#2040B3 #B3208A #B39320 #20B34A
split-complementary
#2040B3 #B34A20 #8AB320
monochromatic
#0D1B4B #172D7F #2040B3 #3559DB #6984E4

Accessibility & contrast

On white

8.59
#2040B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2040B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2040B3
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2040B3#FFFFFF#000000##FFFFFF
##2040B31.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2040b3;
/* rgb */ color: rgb(32, 64, 179);
/* oklch */ color: oklch(42.9% 0.186 266.2);
Tailwind
colors: {
  custom: {
    50: '#7674cb',
    500: '#2040b3',
    950: '#000000',
  },
}
SCSS
$custom: #2040b3;
$custom-light: #7674cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2040b3",
  "rgb": {
    "r": 32,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 226.939,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42891,
    "c": 0.18562,
    "h": 266.2
  },
  "luminance": 0.07229
}

Semantic roles & 50–950 ramp

primary
#2040B3
secondary
#CAB465
accent
#C63BEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2040B3

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

Preview Lab → · Contrast checker → · Palette generator →

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