#223E98#223E98

#223E98 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.151 H 266.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#223E98
RGBrgb(34, 62, 152)
HSLhsl(226, 63%, 36%)
HSVhsv(226, 78%, 60%)
CMYKcmyk(77.6%, 59.2%, 0%, 40.4%)
CIE-LABlab(29.54, 23.26, -52.26)
CIE-LCHlch(29.54, 57.20, 293.99°)
OKLaboklab(40.13% -0.0097 -0.1509)
OKLCHoklch(40.13% 0.151 266.3)
XYZxyz(8.0478, 6.0514, 30.4436)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223E98 #987C22
analogous
#227998 #223E98 #412298
triadic
#223E98 #98223E #3E9822
tetradic
#223E98 #982279 #987C22 #229841
square
#223E98 #982279 #987C22 #229841
split-complementary
#223E98 #984122 #799822
monochromatic
#0C1534 #172A66 #223E98 #2D52CA #5A79DA

Accessibility & contrast

On white

9.50
#223E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#223E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223E98
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223E98#FFFFFF#000000##FFFFFF
##223E981.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #223e98;
/* rgb */ color: rgb(34, 62, 152);
/* oklch */ color: oklch(40.1% 0.151 266.3);
Tailwind
colors: {
  custom: {
    50: '#7072b7',
    500: '#223e98',
    950: '#000000',
  },
}
SCSS
$custom: #223e98;
$custom-light: #7072b7;
$custom-dark: #000000;
JSON
{
  "hex": "#223e98",
  "rgb": {
    "r": 34,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 225.763,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.1512,
    "h": 266.3
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#223E98
secondary
#BEA657
accent
#BF41E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #223E98

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

Preview Lab → · Contrast checker → · Palette generator →

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