#223899#223899

#223899 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.160 H 268.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#223899
RGBrgb(34, 56, 153)
HSLhsl(229, 64%, 37%)
HSVhsv(229, 78%, 60%)
CMYKcmyk(77.8%, 63.4%, 0%, 40%)
CIE-LABlab(28.03, 27.71, -55.34)
CIE-LCHlch(28.03, 61.89, 296.60°)
OKLaboklab(39.03% -0.0055 -0.16)
OKLCHoklch(39.03% 0.16 268)
XYZxyz(7.8216, 5.4675, 30.7739)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223899 #998322
analogous
#227499 #223899 #482299
triadic
#223899 #992238 #389922
tetradic
#223899 #992274 #998322 #229948
square
#223899 #992274 #998322 #229948
split-complementary
#223899 #994822 #749922
monochromatic
#0C1335 #172667 #223899 #2D4ACB #5B72DB

Accessibility & contrast

On white

10.03
#223899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#223899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223899
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223899#FFFFFF#000000##FFFFFF
##2238991.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #223899;
/* rgb */ color: rgb(34, 56, 153);
/* oklch */ color: oklch(39.0% 0.160 268.0);
Tailwind
colors: {
  custom: {
    50: '#716eb8',
    500: '#223899',
    950: '#000000',
  },
}
SCSS
$custom: #223899;
$custom-light: #716eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#223899",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 228.908,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39028,
    "c": 0.16011,
    "h": 268
  },
  "luminance": 0.05468
}

Semantic roles & 50–950 ramp

primary
#223899
secondary
#BFAC58
accent
#C841E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223899

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

Preview Lab → · Contrast checker → · Palette generator →

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