#2247A8#2247A8

#2247A8 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.3% C 0.162 H 264.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2247A8
RGBrgb(34, 71, 168)
HSLhsl(223, 66%, 40%)
HSVhsv(223, 80%, 66%)
CMYKcmyk(79.8%, 57.7%, 0%, 34.1%)
CIE-LABlab(33.29, 23.41, -55.82)
CIE-LCHlch(33.29, 60.53, 292.75°)
OKLaboklab(43.35% -0.0152 -0.1612)
OKLCHoklch(43.35% 0.162 264.6)
XYZxyz(9.9783, 7.6725, 37.9932)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2247A8 #A88322
analogous
#228AA8 #2247A8 #4022A8
triadic
#2247A8 #A82247 #47A822
tetradic
#2247A8 #A8228A #A88322 #22A840
square
#2247A8 #A8228A #A88322 #22A840
split-complementary
#2247A8 #A84022 #8AA822
monochromatic
#0D1C42 #183175 #2247A8 #325FD5 #6587E0

Accessibility & contrast

On white

8.28
#2247A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2247A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2247A8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2247A8#FFFFFF#000000##FFFFFF
##2247A81.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2247a8;
/* rgb */ color: rgb(34, 71, 168);
/* oklch */ color: oklch(43.3% 0.162 264.6);
Tailwind
colors: {
  custom: {
    50: '#7379c3',
    500: '#2247a8',
    950: '#000000',
  },
}
SCSS
$custom: #2247a8;
$custom-light: #7379c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2247a8",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 168
  },
  "hsl": {
    "h": 223.433,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.43346,
    "c": 0.16191,
    "h": 264.6
  },
  "luminance": 0.07674
}

Semantic roles & 50–950 ramp

primary
#2247A8
secondary
#C5A961
accent
#BA3FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2247A8

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

Preview Lab → · Contrast checker → · Palette generator →

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