#223798#223798

#223798 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.7% C 0.160 H 268.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#223798
RGBrgb(34, 55, 152)
HSLhsl(229, 63%, 36%)
HSVhsv(229, 78%, 60%)
CMYKcmyk(77.6%, 63.8%, 0%, 40.4%)
CIE-LABlab(27.68, 28.00, -55.30)
CIE-LCHlch(27.68, 61.99, 296.85°)
OKLaboklab(38.74% -0.0049 -0.1599)
OKLCHoklch(38.74% 0.16 268.3)
XYZxyz(7.6914, 5.3386, 30.3248)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223798 #988322
analogous
#227298 #223798 #482298
triadic
#223798 #982237 #379822
tetradic
#223798 #982272 #988322 #229848
square
#223798 #982272 #988322 #229848
split-complementary
#223798 #984822 #729822
monochromatic
#0C1334 #172566 #223798 #2D49CA #5A71DA

Accessibility & contrast

On white

10.16
#223798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#223798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223798
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223798#FFFFFF#000000##FFFFFF
##2237981.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #223798;
/* rgb */ color: rgb(34, 55, 152);
/* oklch */ color: oklch(38.7% 0.160 268.3);
Tailwind
colors: {
  custom: {
    50: '#716db7',
    500: '#223798',
    950: '#000000',
  },
}
SCSS
$custom: #223798;
$custom-light: #716db7;
$custom-dark: #000000;
JSON
{
  "hex": "#223798",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 229.322,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38743,
    "c": 0.15997,
    "h": 268.3
  },
  "luminance": 0.05339
}

Semantic roles & 50–950 ramp

primary
#223798
secondary
#BEAC57
accent
#C941E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #223798

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

Preview Lab → · Contrast checker → · Palette generator →

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