#2242A4#2242A4

#2242A4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.163 H 265.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2242A4
RGBrgb(34, 66, 164)
HSLhsl(225, 66%, 39%)
HSVhsv(225, 79%, 64%)
CMYKcmyk(79.3%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.61, 25.22, -56.15)
CIE-LCHlch(31.61, 61.55, 294.19°)
OKLaboklab(41.99% -0.012 -0.1622)
OKLCHoklch(41.99% 0.163 265.8)
XYZxyz(9.3064, 6.9158, 35.9592)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A4 #A48422
analogous
#2283A4 #2242A4 #4322A4
triadic
#2242A4 #A42242 #42A422
tetradic
#2242A4 #A42283 #A48422 #22A443
square
#2242A4 #A42283 #A48422 #22A443
split-complementary
#2242A4 #A44322 #83A422
monochromatic
#0D193F #172E71 #2242A4 #2F58D4 #6281DE

Accessibility & contrast

On white

8.81
#2242A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2242A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242A4
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A4#FFFFFF#000000##FFFFFF
##2242A41.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2242a4;
/* rgb */ color: rgb(34, 66, 164);
/* oklch */ color: oklch(42.0% 0.163 265.8);
Tailwind
colors: {
  custom: {
    50: '#7375c0',
    500: '#2242a4',
    950: '#000000',
  },
}
SCSS
$custom: #2242a4;
$custom-light: #7375c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a4",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 225.231,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.1627,
    "h": 265.8
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#2242A4
secondary
#C4AB5E
accent
#BF3FE9
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2242A4

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

Preview Lab → · Contrast checker → · Palette generator →

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