#2242D3#2242D3

#2242D3 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.223 H 266.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2242D3
RGBrgb(34, 66, 211)
HSLhsl(229, 72%, 48%)
HSVhsv(229, 84%, 83%)
CMYKcmyk(83.9%, 68.7%, 0%, 17.3%)
CIE-LABlab(35.86, 42.76, -76.87)
CIE-LCHlch(35.86, 87.96, 299.09°)
OKLaboklab(46.41% -0.0133 -0.2228)
OKLCHoklch(46.41% 0.223 266.6)
XYZxyz(14.3617, 8.9379, 62.5836)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242D3 #D3B322
analogous
#229AD3 #2242D3 #5B22D3
triadic
#2242D3 #D32242 #42D322
tetradic
#2242D3 #D3229A #D3B322 #22D35B
square
#2242D3 #D3229A #D3B322 #22D35B
split-complementary
#2242D3 #D35B22 #9AD322
monochromatic
#11216A #1A329E #2242D3 #4F6AE3 #8497EB

Accessibility & contrast

On white

7.53
#2242D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2242D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242D3
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242D3#FFFFFF#000000##FFFFFF
##2242D31.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD7
Deuteranopia (green-blind)
#004CD0
Tritanopia (blue-blind)
#006B85
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2242d3;
/* rgb */ color: rgb(34, 66, 211);
/* oklch */ color: oklch(46.4% 0.223 266.6);
Tailwind
colors: {
  custom: {
    50: '#7f76e2',
    500: '#2242d3',
    950: '#000000',
  },
}
SCSS
$custom: #2242d3;
$custom-light: #7f76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2242d3",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 229.153,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46414,
    "c": 0.22321,
    "h": 266.6
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#2242D3
secondary
#D4C47D
accent
#CE39EF
background
#F8F7FE
surface
#F0EDFC
border
#CBC8D5
text
#0C0816
muted
#7D7B84

Preview Lab

Preview with #2242D3

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

Preview Lab → · Contrast checker → · Palette generator →

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