#223788#223788

#223788 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.138 H 268.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#223788
RGBrgb(34, 55, 136)
HSLhsl(228, 60%, 33%)
HSVhsv(228, 75%, 53%)
CMYKcmyk(75%, 59.6%, 0%, 46.7%)
CIE-LABlab(26.30, 21.80, -47.68)
CIE-LCHlch(26.30, 52.43, 294.57°)
OKLaboklab(37.29% -0.0049 -0.1375)
OKLCHoklch(37.29% 0.138 268)
XYZxyz(6.4683, 4.8493, 23.8829)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223788 #887322
analogous
#226A88 #223788 #402288
triadic
#223788 #882237 #378822
tetradic
#223788 #88226A #887322 #228840
square
#223788 #88226A #887322 #228840
split-complementary
#223788 #884022 #6A8822
monochromatic
#0A0F26 #162357 #223788 #2E4BB9 #516CD3

Accessibility & contrast

On white

10.66
#223788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#223788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223788
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223788#FFFFFF#000000##FFFFFF
##2237881.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #223788;
/* rgb */ color: rgb(34, 55, 136);
/* oklch */ color: oklch(37.3% 0.138 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d6dab',
    500: '#223788',
    950: '#000000',
  },
}
SCSS
$custom: #223788;
$custom-light: #6d6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#223788",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 227.647,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37291,
    "c": 0.13764,
    "h": 268
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#223788
secondary
#B7A24F
accent
#C345E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #223788

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

Preview Lab → · Contrast checker → · Palette generator →

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