#223A98#223A98

#223A98 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.156 H 267.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#223A98
RGBrgb(34, 58, 152)
HSLhsl(228, 63%, 36%)
HSVhsv(228, 78%, 60%)
CMYKcmyk(77.6%, 61.8%, 0%, 40.4%)
CIE-LABlab(28.47, 25.98, -54.02)
CIE-LCHlch(28.47, 59.94, 295.68°)
OKLaboklab(39.32% -0.0069 -0.1561)
OKLCHoklch(39.32% 0.156 267.5)
XYZxyz(7.8383, 5.6323, 30.3737)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223A98 #988022
analogous
#227598 #223A98 #452298
triadic
#223A98 #98223A #3A9822
tetradic
#223A98 #982275 #988022 #229845
square
#223A98 #982275 #988022 #229845
split-complementary
#223A98 #984522 #759822
monochromatic
#0C1434 #172766 #223A98 #2D4DCA #5A74DA

Accessibility & contrast

On white

9.87
#223A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#223A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223A98
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223A98#FFFFFF#000000##FFFFFF
##223A981.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #223a98;
/* rgb */ color: rgb(34, 58, 152);
/* oklch */ color: oklch(39.3% 0.156 267.5);
Tailwind
colors: {
  custom: {
    50: '#706fb7',
    500: '#223a98',
    950: '#000000',
  },
}
SCSS
$custom: #223a98;
$custom-light: #706fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#223a98",
  "rgb": {
    "r": 34,
    "g": 58,
    "b": 152
  },
  "hsl": {
    "h": 227.797,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39325,
    "c": 0.15625,
    "h": 267.5
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#223A98
secondary
#BEA957
accent
#C541E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223A98

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

Preview Lab → · Contrast checker → · Palette generator →

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