#2240A9#2240A9

#2240A9 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.172 H 266.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2240A9
RGBrgb(34, 64, 169)
HSLhsl(227, 67%, 40%)
HSVhsv(227, 80%, 66%)
CMYKcmyk(79.9%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.51, 28.49, -59.32)
CIE-LCHlch(31.51, 65.81, 295.65°)
OKLaboklab(42.04% -0.0107 -0.1716)
OKLCHoklch(42.04% 0.172 266.4)
XYZxyz(9.6520, 6.8703, 38.3458)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A9 #A98B22
analogous
#2283A9 #2240A9 #4822A9
triadic
#2240A9 #A92240 #40A922
tetradic
#2240A9 #A92283 #A98B22 #22A948
square
#2240A9 #A92283 #A98B22 #22A948
split-complementary
#2240A9 #A94822 #83A922
monochromatic
#0D1943 #182D76 #2240A9 #3257D6 #6581E0

Accessibility & contrast

On white

8.85
#2240A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2240A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A9
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A9#FFFFFF#000000##FFFFFF
##2240A91.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2240a9;
/* rgb */ color: rgb(34, 64, 169);
/* oklch */ color: oklch(42.0% 0.172 266.4);
Tailwind
colors: {
  custom: {
    50: '#7474c3',
    500: '#2240a9',
    950: '#000000',
  },
}
SCSS
$custom: #2240a9;
$custom-light: #7474c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a9",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 226.667,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42041,
    "c": 0.17191,
    "h": 266.4
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#2240A9
secondary
#C5AF61
accent
#C33EE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2240A9

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

Preview Lab → · Contrast checker → · Palette generator →

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