#2242B4#2242B4

#2242B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.184 H 266.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2242B4
RGBrgb(34, 66, 180)
HSLhsl(227, 68%, 42%)
HSVhsv(227, 81%, 71%)
CMYKcmyk(81.1%, 63.3%, 0%, 29.4%)
CIE-LABlab(32.99, 31.36, -63.47)
CIE-LCHlch(32.99, 70.79, 296.29°)
OKLaboklab(43.43% -0.0119 -0.1837)
OKLCHoklch(43.43% 0.184 266.3)
XYZxyz(10.8432, 7.5305, 44.0532)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242B4 #B49422
analogous
#228BB4 #2242B4 #4B22B4
triadic
#2242B4 #B42242 #42B422
tetradic
#2242B4 #B4228B #B49422 #22B44B
square
#2242B4 #B4228B #B49422 #22B44B
split-complementary
#2242B4 #B44B22 #8BB422
monochromatic
#0F1C4D #182F81 #2242B4 #3A5DDA #6D87E3

Accessibility & contrast

On white

8.38
#2242B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2242B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242B4
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242B4#FFFFFF#000000##FFFFFF
##2242B41.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2242b4;
/* rgb */ color: rgb(34, 66, 180);
/* oklch */ color: oklch(43.4% 0.184 266.3);
Tailwind
colors: {
  custom: {
    50: '#7776cb',
    500: '#2242b4',
    950: '#000000',
  },
}
SCSS
$custom: #2242b4;
$custom-light: #7776cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2242b4",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 226.849,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43431,
    "c": 0.18408,
    "h": 266.3
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#2242B4
secondary
#CAB468
accent
#C53DEB
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2242B4

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

Preview Lab → · Contrast checker → · Palette generator →

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