#223799#223799

#223799 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.161 H 268.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#223799
RGBrgb(34, 55, 153)
HSLhsl(229, 64%, 37%)
HSVhsv(229, 78%, 60%)
CMYKcmyk(77.8%, 64.1%, 0%, 40%)
CIE-LABlab(27.77, 28.38, -55.77)
CIE-LCHlch(27.77, 62.57, 296.97°)
OKLaboklab(38.84% -0.0049 -0.1613)
OKLCHoklch(38.84% 0.161 268.3)
XYZxyz(7.7737, 5.3715, 30.7579)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223799 #998422
analogous
#227399 #223799 #492299
triadic
#223799 #992237 #379922
tetradic
#223799 #992273 #998422 #229949
square
#223799 #992273 #998422 #229949
split-complementary
#223799 #994922 #739922
monochromatic
#0C1335 #172567 #223799 #2D49CB #5B71DB

Accessibility & contrast

On white

10.12
#223799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#223799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223799
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223799#FFFFFF#000000##FFFFFF
##2237991.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #223799;
/* rgb */ color: rgb(34, 55, 153);
/* oklch */ color: oklch(38.8% 0.161 268.3);
Tailwind
colors: {
  custom: {
    50: '#716db8',
    500: '#223799',
    950: '#000000',
  },
}
SCSS
$custom: #223799;
$custom-light: #716db8;
$custom-dark: #000000;
JSON
{
  "hex": "#223799",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 229.412,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.16133,
    "h": 268.3
  },
  "luminance": 0.05372
}

Semantic roles & 50–950 ramp

primary
#223799
secondary
#BFAD58
accent
#C941E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223799

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

Preview Lab → · Contrast checker → · Palette generator →

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