#2242B3#2242B3

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

Color values

HEX#2242B3
RGBrgb(34, 66, 179)
HSLhsl(227, 68%, 42%)
HSVhsv(227, 81%, 70%)
CMYKcmyk(81%, 63.1%, 0%, 29.8%)
CIE-LABlab(32.90, 30.98, -63.02)
CIE-LCHlch(32.90, 70.22, 296.18°)
OKLaboklab(43.34% -0.0119 -0.1824)
OKLCHoklch(43.34% 0.183 266.3)
XYZxyz(10.7417, 7.4899, 43.5186)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242B3 #B39322
analogous
#228BB3 #2242B3 #4B22B3
triadic
#2242B3 #B32242 #42B322
tetradic
#2242B3 #B3228B #B39322 #22B34B
square
#2242B3 #B3228B #B39322 #22B34B
split-complementary
#2242B3 #B34B22 #8BB322
monochromatic
#0E1C4C #182F80 #2242B3 #395CD9 #6C87E3

Accessibility & contrast

On white

8.41
#2242B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2242B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242B3
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242B3#FFFFFF#000000##FFFFFF
##2242B31.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2242b3;
/* rgb */ color: rgb(34, 66, 179);
/* oklch */ color: oklch(43.3% 0.183 266.3);
Tailwind
colors: {
  custom: {
    50: '#7776cb',
    500: '#2242b3',
    950: '#000000',
  },
}
SCSS
$custom: #2242b3;
$custom-light: #7776cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2242b3",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 226.759,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43338,
    "c": 0.18277,
    "h": 266.3
  },
  "luminance": 0.07491
}

Semantic roles & 50–950 ramp

primary
#2242B3
secondary
#C9B468
accent
#C53DEB
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2242B3

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

Preview Lab → · Contrast checker → · Palette generator →

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