#223F87#223F87

#223F87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.126 H 264.7°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#223F87
RGBrgb(34, 63, 135)
HSLhsl(223, 60%, 33%)
HSVhsv(223, 75%, 53%)
CMYKcmyk(74.8%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.49, 15.87, -43.50)
CIE-LCHlch(28.49, 46.31, 290.04°)
OKLaboklab(38.92% -0.0117 -0.1251)
OKLCHoklch(38.92% 0.126 264.7)
XYZxyz(6.8088, 5.6436, 23.6475)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F87 #876A22
analogous
#227187 #223F87 #372287
triadic
#223F87 #87223F #3F8722
tetradic
#223F87 #872271 #876A22 #228737
square
#223F87 #872271 #876A22 #228737
split-complementary
#223F87 #873722 #718722
monochromatic
#091125 #162856 #223F87 #2E56B8 #5076D3

Accessibility & contrast

On white

9.86
#223F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#223F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223F87
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F87#FFFFFF#000000##FFFFFF
##223F871.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #223f87;
/* rgb */ color: rgb(34, 63, 135);
/* oklch */ color: oklch(38.9% 0.126 264.7);
Tailwind
colors: {
  custom: {
    50: '#6c73aa',
    500: '#223f87',
    950: '#000000',
  },
}
SCSS
$custom: #223f87;
$custom-light: #6c73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#223f87",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 222.772,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.12566,
    "h": 264.7
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#223F87
secondary
#B7994E
accent
#B645E3
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #223F87

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

Preview Lab → · Contrast checker → · Palette generator →

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