#2242A9#2242A9

#2242A9 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.169 H 266.0°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2242A9
RGBrgb(34, 66, 169)
HSLhsl(226, 67%, 40%)
HSVhsv(226, 80%, 66%)
CMYKcmyk(79.9%, 60.9%, 0%, 33.7%)
CIE-LABlab(32.03, 27.15, -58.47)
CIE-LCHlch(32.03, 64.47, 294.91°)
OKLaboklab(42.43% -0.0119 -0.169)
OKLCHoklch(42.43% 0.169 266)
XYZxyz(9.7668, 7.0999, 38.3841)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A9 #A98922
analogous
#2285A9 #2242A9 #4622A9
triadic
#2242A9 #A92242 #42A922
tetradic
#2242A9 #A92285 #A98922 #22A946
square
#2242A9 #A92285 #A98922 #22A946
split-complementary
#2242A9 #A94622 #85A922
monochromatic
#0D1A43 #182E76 #2242A9 #3259D6 #6582E0

Accessibility & contrast

On white

8.68
#2242A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2242A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242A9
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A9#FFFFFF#000000##FFFFFF
##2242A91.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2242a9;
/* rgb */ color: rgb(34, 66, 169);
/* oklch */ color: oklch(42.4% 0.169 266.0);
Tailwind
colors: {
  custom: {
    50: '#7476c3',
    500: '#2242a9',
    950: '#000000',
  },
}
SCSS
$custom: #2242a9;
$custom-light: #7476c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a9",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 225.778,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4243,
    "c": 0.16947,
    "h": 266
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#2242A9
secondary
#C5AE61
accent
#C13EE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2242A9

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

Preview Lab → · Contrast checker → · Palette generator →

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