#223797#223797

#223797 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.6% C 0.159 H 268.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#223797
RGBrgb(34, 55, 151)
HSLhsl(229, 63%, 36%)
HSVhsv(229, 77%, 59%)
CMYKcmyk(77.5%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.59, 27.62, -54.84)
CIE-LCHlch(27.59, 61.40, 296.73°)
OKLaboklab(38.65% -0.0049 -0.1585)
OKLCHoklch(38.65% 0.159 268.2)
XYZxyz(7.6099, 5.3060, 29.8953)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223797 #978222
analogous
#227297 #223797 #482297
triadic
#223797 #972237 #379722
tetradic
#223797 #972272 #978222 #229748
square
#223797 #972272 #978222 #229748
split-complementary
#223797 #974822 #729722
monochromatic
#0C1333 #172565 #223797 #2D49C9 #5A71DA

Accessibility & contrast

On white

10.19
#223797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#223797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223797
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223797#FFFFFF#000000##FFFFFF
##2237971.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #223797;
/* rgb */ color: rgb(34, 55, 151);
/* oklch */ color: oklch(38.6% 0.159 268.2);
Tailwind
colors: {
  custom: {
    50: '#706db6',
    500: '#223797',
    950: '#000000',
  },
}
SCSS
$custom: #223797;
$custom-light: #706db6;
$custom-dark: #000000;
JSON
{
  "hex": "#223797",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 229.231,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38649,
    "c": 0.15861,
    "h": 268.2
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #223797

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

Preview Lab → · Contrast checker → · Palette generator →

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