#224781#224781

#224781 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.107 H 259.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#224781
RGBrgb(34, 71, 129)
HSLhsl(217, 58%, 32%)
HSVhsv(217, 74%, 51%)
CMYKcmyk(73.6%, 45%, 0%, 49.4%)
CIE-LABlab(30.47, 8.00, -36.59)
CIE-LCHlch(30.47, 37.46, 282.33°)
OKLaboklab(40.3% -0.0201 -0.1046)
OKLCHoklch(40.3% 0.107 259.1)
XYZxyz(6.8739, 6.4308, 21.6436)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#224781 #815C22
analogous
#227781 #224781 #2D2281
triadic
#224781 #812247 #478122
tetradic
#224781 #812277 #815C22 #22812D
square
#224781 #812277 #815C22 #22812D
split-complementary
#224781 #812D22 #778122
monochromatic
#081220 #152C51 #224781 #2F62B1 #4D80D0

Accessibility & contrast

On white

9.18
#224781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#224781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #224781
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##224781#FFFFFF#000000##FFFFFF
##2247811.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4C83
Deuteranopia (green-blind)
#1A4480
Tritanopia (blue-blind)
#00555D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #224781;
/* rgb */ color: rgb(34, 71, 129);
/* oklch */ color: oklch(40.3% 0.107 259.1);
Tailwind
colors: {
  custom: {
    50: '#6a79a6',
    500: '#224781',
    950: '#000000',
  },
}
SCSS
$custom: #224781;
$custom-light: #6a79a6;
$custom-dark: #000000;
JSON
{
  "hex": "#224781",
  "rgb": {
    "r": 34,
    "g": 71,
    "b": 129
  },
  "hsl": {
    "h": 216.632,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.10656,
    "h": 259.1
  },
  "luminance": 0.06432
}

Semantic roles & 50–950 ramp

primary
#224781
secondary
#B38B4B
accent
#A546E1
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #224781

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

Preview Lab → · Contrast checker → · Palette generator →

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