#223FA8#223FA8

#223FA8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.172 H 266.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#223FA8
RGBrgb(34, 63, 168)
HSLhsl(227, 66%, 40%)
HSVhsv(227, 80%, 66%)
CMYKcmyk(79.8%, 62.5%, 0%, 34.1%)
CIE-LABlab(31.16, 28.77, -59.29)
CIE-LCHlch(31.16, 65.90, 295.89°)
OKLaboklab(41.76% -0.0101 -0.1715)
OKLCHoklch(41.76% 0.172 266.6)
XYZxyz(9.5026, 6.7211, 37.8347)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223FA8 #A88B22
analogous
#2282A8 #223FA8 #4822A8
triadic
#223FA8 #A8223F #3FA822
tetradic
#223FA8 #A82282 #A88B22 #22A848
square
#223FA8 #A82282 #A88B22 #22A848
split-complementary
#223FA8 #A84822 #82A822
monochromatic
#0D1942 #182C75 #223FA8 #3255D5 #657FE0

Accessibility & contrast

On white

8.96
#223FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#223FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223FA8
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223FA8#FFFFFF#000000##FFFFFF
##223FA81.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #223fa8;
/* rgb */ color: rgb(34, 63, 168);
/* oklch */ color: oklch(41.8% 0.172 266.6);
Tailwind
colors: {
  custom: {
    50: '#7473c3',
    500: '#223fa8',
    950: '#000000',
  },
}
SCSS
$custom: #223fa8;
$custom-light: #7473c3;
$custom-dark: #000000;
JSON
{
  "hex": "#223fa8",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 227.015,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41757,
    "c": 0.1718,
    "h": 266.6
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#223FA8
secondary
#C5AF61
accent
#C43FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #223FA8

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

Preview Lab → · Contrast checker → · Palette generator →

#223FA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva