#224787#224787

#224787 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.115 H 260.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#224787
RGBrgb(34, 71, 135)
HSLhsl(218, 60%, 33%)
HSVhsv(218, 75%, 53%)
CMYKcmyk(74.8%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.87, 10.37, -39.68)
CIE-LCHlch(30.87, 41.02, 284.65°)
OKLaboklab(40.73% -0.019 -0.1137)
OKLCHoklch(40.73% 0.115 260.5)
XYZxyz(7.2845, 6.5950, 23.8060)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#224787 #876222
analogous
#227987 #224787 #302287
triadic
#224787 #872247 #478722
tetradic
#224787 #872279 #876222 #228730
square
#224787 #872279 #876222 #228730
split-complementary
#224787 #873022 #798722
monochromatic
#091425 #162D56 #224787 #2E61B8 #5080D3

Accessibility & contrast

On white

9.05
#224787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#224787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #224787
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##224787#FFFFFF#000000##FFFFFF
##2247871.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E89
Deuteranopia (green-blind)
#0F4486
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #224787;
/* rgb */ color: rgb(34, 71, 135);
/* oklch */ color: oklch(40.7% 0.115 260.5);
Tailwind
colors: {
  custom: {
    50: '#6b79aa',
    500: '#224787',
    950: '#000000',
  },
}
SCSS
$custom: #224787;
$custom-light: #6b79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#224787",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 218.02,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.1153,
    "h": 260.5
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#224787
secondary
#B7904E
accent
#A945E3
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #224787

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

Preview Lab → · Contrast checker → · Palette generator →

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