#2242BC#2242BC

#2242BC is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.2% C 0.194 H 266.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#2242BC
RGBrgb(34, 66, 188)
HSLhsl(228, 69%, 44%)
HSVhsv(228, 82%, 74%)
CMYKcmyk(81.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(33.70, 34.36, -67.02)
CIE-LCHlch(33.70, 75.31, 297.15°)
OKLaboklab(44.18% -0.0121 -0.1941)
OKLCHoklch(44.18% 0.194 266.4)
XYZxyz(11.6818, 7.8659, 48.4698)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242BC #BC9C22
analogous
#228FBC #2242BC #4F22BC
triadic
#2242BC #BC2242 #42BC22
tetradic
#2242BC #BC228F #BC9C22 #22BC4F
square
#2242BC #BC228F #BC9C22 #22BC4F
split-complementary
#2242BC #BC4F22 #8FBC22
monochromatic
#0F1E54 #193088 #2242BC #3F60DC #738BE6

Accessibility & contrast

On white

8.16
#2242BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2242BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242BC
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242BC#FFFFFF#000000##FFFFFF
##2242BC1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#006379
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2242bc;
/* rgb */ color: rgb(34, 66, 188);
/* oklch */ color: oklch(44.2% 0.194 266.4);
Tailwind
colors: {
  custom: {
    50: '#7976d1',
    500: '#2242bc',
    950: '#000000',
  },
}
SCSS
$custom: #2242bc;
$custom-light: #7976d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2242bc",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 227.532,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.19446,
    "h": 266.4
  },
  "luminance": 0.07867
}

Semantic roles & 50–950 ramp

primary
#2242BC
secondary
#CDB96D
accent
#C73CEC
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2242BC

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

Preview Lab → · Contrast checker → · Palette generator →

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