#2242BD#2242BD

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

Color values

HEX#2242BD
RGBrgb(34, 66, 189)
HSLhsl(228, 70%, 44%)
HSVhsv(228, 82%, 74%)
CMYKcmyk(82%, 65.1%, 0%, 25.9%)
CIE-LABlab(33.79, 34.74, -67.46)
CIE-LCHlch(33.79, 75.87, 297.25°)
OKLaboklab(44.27% -0.0121 -0.1954)
OKLCHoklch(44.27% 0.196 266.4)
XYZxyz(11.7900, 7.9092, 49.0395)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242BD #BD9D22
analogous
#228FBD #2242BD #4F22BD
triadic
#2242BD #BD2242 #42BD22
tetradic
#2242BD #BD228F #BD9D22 #22BD4F
square
#2242BD #BD228F #BD9D22 #22BD4F
split-complementary
#2242BD #BD4F22 #8FBD22
monochromatic
#0F1E55 #193089 #2242BD #4060DD #738BE6

Accessibility & contrast

On white

8.13
#2242BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2242BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242BD
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242BD#FFFFFF#000000##FFFFFF
##2242BD1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2242bd;
/* rgb */ color: rgb(34, 66, 189);
/* oklch */ color: oklch(44.3% 0.196 266.4);
Tailwind
colors: {
  custom: {
    50: '#7976d2',
    500: '#2242bd',
    950: '#000000',
  },
}
SCSS
$custom: #2242bd;
$custom-light: #7976d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2242bd",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 227.613,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44274,
    "c": 0.19574,
    "h": 266.4
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#2242BD
secondary
#CDB96E
accent
#C83BEC
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2242BD

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

Preview Lab → · Contrast checker → · Palette generator →

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