#223F98#223F98

#223F98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.150 H 266.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#223F98
RGBrgb(34, 63, 152)
HSLhsl(225, 63%, 36%)
HSVhsv(225, 78%, 60%)
CMYKcmyk(77.6%, 58.6%, 0%, 40.4%)
CIE-LABlab(29.82, 22.58, -51.81)
CIE-LCHlch(29.82, 56.52, 293.54°)
OKLaboklab(40.33% -0.0104 -0.1496)
OKLCHoklch(40.33% 0.15 266)
XYZxyz(8.1027, 6.1612, 30.4619)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F98 #987B22
analogous
#227A98 #223F98 #402298
triadic
#223F98 #98223F #3F9822
tetradic
#223F98 #98227A #987B22 #229840
square
#223F98 #98227A #987B22 #229840
split-complementary
#223F98 #984022 #7A9822
monochromatic
#0C1634 #172A66 #223F98 #2D54CA #5A7ADA

Accessibility & contrast

On white

9.41
#223F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#223F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223F98
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F98#FFFFFF#000000##FFFFFF
##223F981.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #223f98;
/* rgb */ color: rgb(34, 63, 152);
/* oklch */ color: oklch(40.3% 0.150 266.0);
Tailwind
colors: {
  custom: {
    50: '#7073b7',
    500: '#223f98',
    950: '#000000',
  },
}
SCSS
$custom: #223f98;
$custom-light: #7073b7;
$custom-dark: #000000;
JSON
{
  "hex": "#223f98",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 152
  },
  "hsl": {
    "h": 225.254,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40333,
    "c": 0.14992,
    "h": 266
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#223F98
secondary
#BEA557
accent
#BE41E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #223F98

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

Preview Lab → · Contrast checker → · Palette generator →

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