#223EA1#223EA1

#223EA1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.164 H 266.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#223EA1
RGBrgb(34, 62, 161)
HSLhsl(227, 65%, 38%)
HSVhsv(227, 79%, 63%)
CMYKcmyk(78.9%, 61.5%, 0%, 36.9%)
CIE-LABlab(30.30, 26.75, -56.49)
CIE-LCHlch(30.30, 62.51, 295.34°)
OKLaboklab(40.93% -0.0095 -0.1633)
OKLCHoklch(40.93% 0.164 266.7)
XYZxyz(8.8131, 6.3575, 34.4739)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223EA1 #A18522
analogous
#227DA1 #223EA1 #4622A1
triadic
#223EA1 #A1223E #3EA122
tetradic
#223EA1 #A1227D #A18522 #22A146
square
#223EA1 #A1227D #A18522 #22A146
split-complementary
#223EA1 #A14622 #7DA122
monochromatic
#0D173C #172B6E #223EA1 #2D52D3 #607CDD

Accessibility & contrast

On white

9.24
#223EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#223EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223EA1
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223EA1#FFFFFF#000000##FFFFFF
##223EA11.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #223ea1;
/* rgb */ color: rgb(34, 62, 161);
/* oklch */ color: oklch(40.9% 0.164 266.7);
Tailwind
colors: {
  custom: {
    50: '#7273be',
    500: '#223ea1',
    950: '#000000',
  },
}
SCSS
$custom: #223ea1;
$custom-light: #7273be;
$custom-dark: #000000;
JSON
{
  "hex": "#223ea1",
  "rgb": {
    "r": 34,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 226.772,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40927,
    "c": 0.16358,
    "h": 266.7
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#223EA1
secondary
#C2AC5D
accent
#C340E8
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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