#223F97#223F97

#223F97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.149 H 266.0°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#223F97
RGBrgb(34, 63, 151)
HSLhsl(225, 63%, 36%)
HSVhsv(225, 77%, 59%)
CMYKcmyk(77.5%, 58.3%, 0%, 40.8%)
CIE-LABlab(29.73, 22.18, -51.34)
CIE-LCHlch(29.73, 55.92, 293.37°)
OKLaboklab(40.25% -0.0104 -0.1482)
OKLCHoklch(40.25% 0.149 266)
XYZxyz(8.0211, 6.1286, 30.0323)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F97 #977A22
analogous
#227A97 #223F97 #402297
triadic
#223F97 #97223F #3F9722
tetradic
#223F97 #97227A #977A22 #229740
square
#223F97 #97227A #977A22 #229740
split-complementary
#223F97 #974022 #7A9722
monochromatic
#0C1533 #172A65 #223F97 #2D54C9 #5A79DA

Accessibility & contrast

On white

9.43
#223F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #223F97
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F97#FFFFFF#000000##FFFFFF
##223F971.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #223f97;
/* rgb */ color: rgb(34, 63, 151);
/* oklch */ color: oklch(40.2% 0.149 266.0);
Tailwind
colors: {
  custom: {
    50: '#7073b6',
    500: '#223f97',
    950: '#000000',
  },
}
SCSS
$custom: #223f97;
$custom-light: #7073b6;
$custom-dark: #000000;
JSON
{
  "hex": "#223f97",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 225.128,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40247,
    "c": 0.14853,
    "h": 266
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#223F97
secondary
#BEA457
accent
#BD42E6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #223F97

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

Preview Lab → · Contrast checker → · Palette generator →

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