#2242A2#2242A2

#2242A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.160 H 265.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2242A2
RGBrgb(34, 66, 162)
HSLhsl(225, 65%, 38%)
HSVhsv(225, 79%, 64%)
CMYKcmyk(79%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.45, 24.44, -55.21)
CIE-LCHlch(31.45, 60.38, 293.88°)
OKLaboklab(41.81% -0.0121 -0.1595)
OKLCHoklch(41.81% 0.16 265.7)
XYZxyz(9.1272, 6.8441, 35.0154)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A2 #A28222
analogous
#2282A2 #2242A2 #4222A2
triadic
#2242A2 #A22242 #42A222
tetradic
#2242A2 #A22282 #A28222 #22A242
square
#2242A2 #A22282 #A28222 #22A242
split-complementary
#2242A2 #A24222 #82A222
monochromatic
#0D193D #172D6F #2242A2 #2E57D3 #6180DE

Accessibility & contrast

On white

8.86
#2242A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2242A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242A2
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A2#FFFFFF#000000##FFFFFF
##2242A21.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2242a2;
/* rgb */ color: rgb(34, 66, 162);
/* oklch */ color: oklch(41.8% 0.160 265.7);
Tailwind
colors: {
  custom: {
    50: '#7275be',
    500: '#2242a2',
    950: '#000000',
  },
}
SCSS
$custom: #2242a2;
$custom-light: #7275be;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a2",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 225,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41812,
    "c": 0.15996,
    "h": 265.7
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#2242A2
secondary
#C3A95D
accent
#BE40E8
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2242A2

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

Preview Lab → · Contrast checker → · Palette generator →

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