#2242C4#2242C4

#2242C4 is a dark, highly saturated blue. Relative luminance 0.082; OKLCH L 44.9% C 0.205 H 266.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2242C4
RGBrgb(34, 66, 196)
HSLhsl(228, 70%, 45%)
HSVhsv(228, 83%, 77%)
CMYKcmyk(82.7%, 66.3%, 0%, 23.1%)
CIE-LABlab(34.44, 37.33, -70.50)
CIE-LCHlch(34.44, 79.77, 297.90°)
OKLaboklab(44.94% -0.0124 -0.2043)
OKLCHoklch(44.94% 0.205 266.5)
XYZxyz(12.5682, 8.2205, 53.1382)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242C4 #C4A422
analogous
#2293C4 #2242C4 #5322C4
triadic
#2242C4 #C42242 #42C422
tetradic
#2242C4 #C42293 #C4A422 #22C453
square
#2242C4 #C42293 #C4A422 #22C453
split-complementary
#2242C4 #C45322 #93C422
monochromatic
#101F5C #193090 #2242C4 #4563DF #798FE8

Accessibility & contrast

On white

7.94
#2242C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2242C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242C4
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242C4#FFFFFF#000000##FFFFFF
##2242C41.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0049C2
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2242c4;
/* rgb */ color: rgb(34, 66, 196);
/* oklch */ color: oklch(44.9% 0.205 266.5);
Tailwind
colors: {
  custom: {
    50: '#7b76d7',
    500: '#2242c4',
    950: '#000000',
  },
}
SCSS
$custom: #2242c4;
$custom-light: #7b76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2242c4",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 228.148,
    "s": 70.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44943,
    "c": 0.20464,
    "h": 266.5
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#2242C4
secondary
#CFBD73
accent
#CA3BED
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0815
muted
#7C7B83

Preview Lab

Preview with #2242C4

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

Preview Lab → · Contrast checker → · Palette generator →

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