#224798#224798

#224798 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.140 H 263.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#224798
RGBrgb(34, 71, 152)
HSLhsl(221, 63%, 36%)
HSVhsv(221, 78%, 60%)
CMYKcmyk(77.6%, 53.3%, 0%, 40.4%)
CIE-LABlab(32.06, 17.12, -48.17)
CIE-LCHlch(32.06, 51.12, 289.56°)
OKLaboklab(42.03% -0.0165 -0.1387)
OKLCHoklch(42.03% 0.14 263.2)
XYZxyz(8.5784, 7.1126, 30.6204)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#224798 #987322
analogous
#228298 #224798 #382298
triadic
#224798 #982247 #479822
tetradic
#224798 #982282 #987322 #229838
square
#224798 #982282 #987322 #229838
split-complementary
#224798 #983822 #829822
monochromatic
#0C1834 #173066 #224798 #2D5ECA #5A82DA

Accessibility & contrast

On white

8.67
#224798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#224798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #224798
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##224798#FFFFFF#000000##FFFFFF
##2247981.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #224798;
/* rgb */ color: rgb(34, 71, 152);
/* oklch */ color: oklch(42.0% 0.140 263.2);
Tailwind
colors: {
  custom: {
    50: '#6f79b7',
    500: '#224798',
    950: '#000000',
  },
}
SCSS
$custom: #224798;
$custom-light: #6f79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#224798",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 221.186,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42029,
    "c": 0.13968,
    "h": 263.2
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#224798
secondary
#BE9E57
accent
#B341E6
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #224798

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

Preview Lab → · Contrast checker → · Palette generator →

#224798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva