#2242AF#2242AF

#2242AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.177 H 266.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2242AF
RGBrgb(34, 66, 175)
HSLhsl(226, 67%, 41%)
HSVhsv(226, 81%, 69%)
CMYKcmyk(80.6%, 62.3%, 0%, 31.4%)
CIE-LABlab(32.55, 29.45, -61.21)
CIE-LCHlch(32.55, 67.93, 295.70°)
OKLaboklab(42.97% -0.0119 -0.1771)
OKLCHoklch(42.97% 0.177 266.2)
XYZxyz(10.3430, 7.3304, 41.4189)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242AF #AF8F22
analogous
#2288AF #2242AF #4822AF
triadic
#2242AF #AF2242 #42AF22
tetradic
#2242AF #AF2288 #AF8F22 #22AF48
square
#2242AF #AF2288 #AF8F22 #22AF48
split-complementary
#2242AF #AF4822 #88AF22
monochromatic
#0E1B49 #182F7C #2242AF #365BD8 #6985E2

Accessibility & contrast

On white

8.51
#2242AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2242AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242AF
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242AF#FFFFFF#000000##FFFFFF
##2242AF1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2242af;
/* rgb */ color: rgb(34, 66, 175);
/* oklch */ color: oklch(43.0% 0.177 266.2);
Tailwind
colors: {
  custom: {
    50: '#7676c8',
    500: '#2242af',
    950: '#000000',
  },
}
SCSS
$custom: #2242af;
$custom-light: #7676c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2242af",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 226.383,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.17749,
    "h": 266.2
  },
  "luminance": 0.07332
}

Semantic roles & 50–950 ramp

primary
#2242AF
secondary
#C8B165
accent
#C33DEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2242AF

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

Preview Lab → · Contrast checker → · Palette generator →

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