#2242AE#2242AE

#2242AE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.176 H 266.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2242AE
RGBrgb(34, 66, 174)
HSLhsl(226, 67%, 41%)
HSVhsv(226, 80%, 68%)
CMYKcmyk(80.5%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.46, 29.07, -60.76)
CIE-LCHlch(32.46, 67.35, 295.57°)
OKLaboklab(42.88% -0.0119 -0.1758)
OKLCHoklch(42.88% 0.176 266.1)
XYZxyz(10.2452, 7.2913, 40.9036)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242AE #AE8E22
analogous
#2288AE #2242AE #4822AE
triadic
#2242AE #AE2242 #42AE22
tetradic
#2242AE #AE2288 #AE8E22 #22AE48
square
#2242AE #AE2288 #AE8E22 #22AE48
split-complementary
#2242AE #AE4822 #88AE22
monochromatic
#0E1B48 #182F7B #2242AE #365BD8 #6984E2

Accessibility & contrast

On white

8.54
#2242AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2242AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242AE
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242AE#FFFFFF#000000##FFFFFF
##2242AE1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2242ae;
/* rgb */ color: rgb(34, 66, 174);
/* oklch */ color: oklch(42.9% 0.176 266.1);
Tailwind
colors: {
  custom: {
    50: '#7576c7',
    500: '#2242ae',
    950: '#000000',
  },
}
SCSS
$custom: #2242ae;
$custom-light: #7576c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2242ae",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 226.286,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42881,
    "c": 0.17616,
    "h": 266.1
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#2242AE
secondary
#C7B164
accent
#C33EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2242AE

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

Preview Lab → · Contrast checker → · Palette generator →

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