#2240AE#2240AE

#2240AE is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.179 H 266.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2240AE
RGBrgb(34, 64, 174)
HSLhsl(227, 67%, 41%)
HSVhsv(227, 80%, 68%)
CMYKcmyk(80.5%, 63.2%, 0%, 31.8%)
CIE-LABlab(31.95, 30.40, -61.60)
CIE-LCHlch(31.95, 68.69, 296.26°)
OKLaboklab(42.5% -0.0107 -0.1782)
OKLCHoklch(42.5% 0.179 266.6)
XYZxyz(10.1304, 7.0617, 40.8653)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240AE #AE9022
analogous
#2286AE #2240AE #4A22AE
triadic
#2240AE #AE2240 #40AE22
tetradic
#2240AE #AE2286 #AE9022 #22AE4A
square
#2240AE #AE2286 #AE9022 #22AE4A
split-complementary
#2240AE #AE4A22 #86AE22
monochromatic
#0E1A48 #182D7B #2240AE #3658D8 #6983E2

Accessibility & contrast

On white

8.70
#2240AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2240AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240AE
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240AE#FFFFFF#000000##FFFFFF
##2240AE1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2240ae;
/* rgb */ color: rgb(34, 64, 174);
/* oklch */ color: oklch(42.5% 0.179 266.6);
Tailwind
colors: {
  custom: {
    50: '#7574c7',
    500: '#2240ae',
    950: '#000000',
  },
}
SCSS
$custom: #2240ae;
$custom-light: #7574c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2240ae",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 227.143,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.425,
    "c": 0.17857,
    "h": 266.6
  },
  "luminance": 0.07063
}

Semantic roles & 50–950 ramp

primary
#2240AE
secondary
#C7B264
accent
#C53EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2240AE

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

Preview Lab → · Contrast checker → · Palette generator →

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