#2242A3#2242A3

#2242A3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.161 H 265.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2242A3
RGBrgb(34, 66, 163)
HSLhsl(225, 65%, 39%)
HSVhsv(225, 79%, 64%)
CMYKcmyk(79.1%, 59.5%, 0%, 36.1%)
CIE-LABlab(31.53, 24.83, -55.68)
CIE-LCHlch(31.53, 60.97, 294.03°)
OKLaboklab(41.9% -0.0121 -0.1609)
OKLCHoklch(41.9% 0.161 265.7)
XYZxyz(9.2164, 6.8798, 35.4854)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A3 #A38322
analogous
#2282A3 #2242A3 #4222A3
triadic
#2242A3 #A32242 #42A322
tetradic
#2242A3 #A32282 #A38322 #22A342
square
#2242A3 #A32282 #A38322 #22A342
split-complementary
#2242A3 #A34222 #82A322
monochromatic
#0D193E #172D70 #2242A3 #2F58D4 #6180DE

Accessibility & contrast

On white

8.84
#2242A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2242A3
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A3#FFFFFF#000000##FFFFFF
##2242A31.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2242a3;
/* rgb */ color: rgb(34, 66, 163);
/* oklch */ color: oklch(41.9% 0.161 265.7);
Tailwind
colors: {
  custom: {
    50: '#7275bf',
    500: '#2242a3',
    950: '#000000',
  },
}
SCSS
$custom: #2242a3;
$custom-light: #7275bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a3",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 225.116,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.419,
    "c": 0.16133,
    "h": 265.7
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#2242A3
secondary
#C3AA5E
accent
#BE3FE8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2242A3

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

Preview Lab → · Contrast checker → · Palette generator →

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