#2242A8#2242A8

#2242A8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.168 H 265.9°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2242A8
RGBrgb(34, 66, 168)
HSLhsl(226, 66%, 40%)
HSVhsv(226, 80%, 66%)
CMYKcmyk(79.8%, 60.7%, 0%, 34.1%)
CIE-LABlab(31.95, 26.77, -58.01)
CIE-LCHlch(31.95, 63.89, 294.77°)
OKLaboklab(42.34% -0.0119 -0.1677)
OKLCHoklch(42.34% 0.168 265.9)
XYZxyz(9.6733, 7.0625, 37.8916)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A8 #A88822
analogous
#2285A8 #2242A8 #4522A8
triadic
#2242A8 #A82242 #42A822
tetradic
#2242A8 #A82285 #A88822 #22A845
square
#2242A8 #A82285 #A88822 #22A845
split-complementary
#2242A8 #A84522 #85A822
monochromatic
#0D1A42 #182E75 #2242A8 #3259D5 #6582E0

Accessibility & contrast

On white

8.70
#2242A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2242A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2242A8
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A8#FFFFFF#000000##FFFFFF
##2242A81.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2242a8;
/* rgb */ color: rgb(34, 66, 168);
/* oklch */ color: oklch(42.3% 0.168 265.9);
Tailwind
colors: {
  custom: {
    50: '#7476c3',
    500: '#2242a8',
    950: '#000000',
  },
}
SCSS
$custom: #2242a8;
$custom-light: #7476c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a8",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 225.672,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42341,
    "c": 0.16812,
    "h": 265.9
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#2242A8
secondary
#C5AD61
accent
#C03FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2242A8

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

Preview Lab → · Contrast checker → · Palette generator →

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