#2240A4#2240A4

#2240A4 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.165 H 266.3°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2240A4
RGBrgb(34, 64, 164)
HSLhsl(226, 66%, 39%)
HSVhsv(226, 79%, 64%)
CMYKcmyk(79.3%, 61%, 0%, 35.7%)
CIE-LABlab(31.08, 26.56, -57.02)
CIE-LCHlch(31.08, 62.90, 294.98°)
OKLaboklab(41.59% -0.0107 -0.1648)
OKLCHoklch(41.59% 0.165 266.3)
XYZxyz(9.1916, 6.6862, 35.9209)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A4 #A48622
analogous
#2281A4 #2240A4 #4522A4
triadic
#2240A4 #A42240 #40A422
tetradic
#2240A4 #A42281 #A48622 #22A445
square
#2240A4 #A42281 #A48622 #22A445
split-complementary
#2240A4 #A44522 #81A422
monochromatic
#0D183F #172C71 #2240A4 #2F55D4 #627FDE

Accessibility & contrast

On white

8.98
#2240A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2240A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A4
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A4#FFFFFF#000000##FFFFFF
##2240A41.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2240a4;
/* rgb */ color: rgb(34, 64, 164);
/* oklch */ color: oklch(41.6% 0.165 266.3);
Tailwind
colors: {
  custom: {
    50: '#7374c0',
    500: '#2240a4',
    950: '#000000',
  },
}
SCSS
$custom: #2240a4;
$custom-light: #7374c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a4",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 226.154,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4159,
    "c": 0.16518,
    "h": 266.3
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#2240A4
secondary
#C4AC5E
accent
#C23FE9
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2240A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2240A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva