#223897#223897

#223897 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.157 H 268.0°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#223897
RGBrgb(34, 56, 151)
HSLhsl(229, 63%, 36%)
HSVhsv(229, 77%, 59%)
CMYKcmyk(77.5%, 62.9%, 0%, 40.8%)
CIE-LABlab(27.85, 26.94, -54.41)
CIE-LCHlch(27.85, 60.71, 296.34°)
OKLaboklab(38.84% -0.0055 -0.1573)
OKLCHoklch(38.84% 0.157 268)
XYZxyz(7.6578, 5.4019, 29.9112)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223897 #978122
analogous
#227397 #223897 #472297
triadic
#223897 #972238 #389722
tetradic
#223897 #972273 #978122 #229747
square
#223897 #972273 #978122 #229747
split-complementary
#223897 #974722 #739722
monochromatic
#0C1333 #172565 #223897 #2D4BC9 #5A72DA

Accessibility & contrast

On white

10.09
#223897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#223897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223897
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223897#FFFFFF#000000##FFFFFF
##2238971.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #223897;
/* rgb */ color: rgb(34, 56, 151);
/* oklch */ color: oklch(38.8% 0.157 268.0);
Tailwind
colors: {
  custom: {
    50: '#706eb6',
    500: '#223897',
    950: '#000000',
  },
}
SCSS
$custom: #223897;
$custom-light: #706eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#223897",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 228.718,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38842,
    "c": 0.15737,
    "h": 268
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#223897
secondary
#BEAB57
accent
#C742E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223897

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

Preview Lab → · Contrast checker → · Palette generator →

#223897 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva