#223D98#223D98

#223D98 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.152 H 266.6°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#223D98
RGBrgb(34, 61, 152)
HSLhsl(226, 63%, 36%)
HSVhsv(226, 78%, 60%)
CMYKcmyk(77.6%, 59.9%, 0%, 40.4%)
CIE-LABlab(29.27, 23.94, -52.70)
CIE-LCHlch(29.27, 57.88, 294.43°)
OKLaboklab(39.92% -0.0089 -0.1522)
OKLCHoklch(39.92% 0.152 266.6)
XYZxyz(7.9939, 5.9437, 30.4256)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223D98 #987D22
analogous
#227898 #223D98 #422298
triadic
#223D98 #98223D #3D9822
tetradic
#223D98 #982278 #987D22 #229842
square
#223D98 #982278 #987D22 #229842
split-complementary
#223D98 #984222 #789822
monochromatic
#0C1534 #172966 #223D98 #2D51CA #5A78DA

Accessibility & contrast

On white

9.59
#223D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#223D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223D98
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223D98#FFFFFF#000000##FFFFFF
##223D981.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #223d98;
/* rgb */ color: rgb(34, 61, 152);
/* oklch */ color: oklch(39.9% 0.152 266.6);
Tailwind
colors: {
  custom: {
    50: '#7072b7',
    500: '#223d98',
    950: '#000000',
  },
}
SCSS
$custom: #223d98;
$custom-light: #7072b7;
$custom-dark: #000000;
JSON
{
  "hex": "#223d98",
  "rgb": {
    "r": 34,
    "g": 61,
    "b": 152
  },
  "hsl": {
    "h": 226.271,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39925,
    "c": 0.15246,
    "h": 266.6
  },
  "luminance": 0.05945
}

Semantic roles & 50–950 ramp

primary
#223D98
secondary
#BEA757
accent
#C141E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223D98

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

Preview Lab → · Contrast checker → · Palette generator →

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