#2242A7#2242A7

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

Color values

HEX#2242A7
RGBrgb(34, 66, 167)
HSLhsl(226, 66%, 39%)
HSVhsv(226, 80%, 65%)
CMYKcmyk(79.6%, 60.5%, 0%, 34.5%)
CIE-LABlab(31.86, 26.38, -57.54)
CIE-LCHlch(31.86, 63.30, 294.63°)
OKLaboklab(42.25% -0.0119 -0.1663)
OKLCHoklch(42.25% 0.167 265.9)
XYZxyz(9.5805, 7.0254, 37.4028)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2242A7 #A78722
analogous
#2285A7 #2242A7 #4522A7
triadic
#2242A7 #A72242 #42A722
tetradic
#2242A7 #A72285 #A78722 #22A745
square
#2242A7 #A72285 #A78722 #22A745
split-complementary
#2242A7 #A74522 #85A722
monochromatic
#0D1A41 #182E74 #2242A7 #3159D5 #6482DF

Accessibility & contrast

On white

8.73
#2242A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2242A7
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2242A7#FFFFFF#000000##FFFFFF
##2242A71.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2242a7;
/* rgb */ color: rgb(34, 66, 167);
/* oklch */ color: oklch(42.3% 0.167 265.9);
Tailwind
colors: {
  custom: {
    50: '#7376c2',
    500: '#2242a7',
    950: '#000000',
  },
}
SCSS
$custom: #2242a7;
$custom-light: #7376c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2242a7",
  "rgb": {
    "r": 34,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 225.564,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42252,
    "c": 0.16677,
    "h": 265.9
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#2242A7
secondary
#C5AC60
accent
#C03FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2242A7

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

Preview Lab → · Contrast checker → · Palette generator →

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