#2240A6#2240A6

#2240A6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.168 H 266.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2240A6
RGBrgb(34, 64, 166)
HSLhsl(226, 66%, 39%)
HSVhsv(226, 80%, 65%)
CMYKcmyk(79.5%, 61.4%, 0%, 34.9%)
CIE-LABlab(31.25, 27.34, -57.95)
CIE-LCHlch(31.25, 64.07, 295.26°)
OKLaboklab(41.77% -0.0107 -0.1675)
OKLCHoklch(41.77% 0.168 266.3)
XYZxyz(9.3736, 6.7590, 36.8796)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A6 #A68822
analogous
#2282A6 #2240A6 #4622A6
triadic
#2240A6 #A62240 #40A622
tetradic
#2240A6 #A62282 #A68822 #22A646
square
#2240A6 #A62282 #A68822 #22A646
split-complementary
#2240A6 #A64622 #82A622
monochromatic
#0D1940 #182C73 #2240A6 #3056D5 #637FDF

Accessibility & contrast

On white

8.93
#2240A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2240A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A6
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A6#FFFFFF#000000##FFFFFF
##2240A61.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2240a6;
/* rgb */ color: rgb(34, 64, 166);
/* oklch */ color: oklch(41.8% 0.168 266.3);
Tailwind
colors: {
  custom: {
    50: '#7374c1',
    500: '#2240a6',
    950: '#000000',
  },
}
SCSS
$custom: #2240a6;
$custom-light: #7374c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a6",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 226.364,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41769,
    "c": 0.16788,
    "h": 266.3
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#2240A6
secondary
#C4AD5F
accent
#C23FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2240A6

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

Preview Lab → · Contrast checker → · Palette generator →

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