#223FA1#223FA1

#223FA1 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.162 H 266.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#223FA1
RGBrgb(34, 63, 161)
HSLhsl(226, 65%, 38%)
HSVhsv(226, 79%, 63%)
CMYKcmyk(78.9%, 60.9%, 0%, 36.9%)
CIE-LABlab(30.56, 26.08, -56.06)
CIE-LCHlch(30.56, 61.83, 294.95°)
OKLaboklab(41.12% -0.0101 -0.162)
OKLCHoklch(41.12% 0.162 266.4)
XYZxyz(8.8680, 6.4673, 34.4922)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223FA1 #A18422
analogous
#227EA1 #223FA1 #4422A1
triadic
#223FA1 #A1223F #3FA122
tetradic
#223FA1 #A1227E #A18422 #22A144
square
#223FA1 #A1227E #A18422 #22A144
split-complementary
#223FA1 #A14422 #7EA122
monochromatic
#0D173C #172B6E #223FA1 #2D53D3 #607DDD

Accessibility & contrast

On white

9.16
#223FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#223FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223FA1
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223FA1#FFFFFF#000000##FFFFFF
##223FA11.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #223fa1;
/* rgb */ color: rgb(34, 63, 161);
/* oklch */ color: oklch(41.1% 0.162 266.4);
Tailwind
colors: {
  custom: {
    50: '#7273be',
    500: '#223fa1',
    950: '#000000',
  },
}
SCSS
$custom: #223fa1;
$custom-light: #7273be;
$custom-dark: #000000;
JSON
{
  "hex": "#223fa1",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 226.299,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41124,
    "c": 0.16234,
    "h": 266.4
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#223FA1
secondary
#C2AB5D
accent
#C240E8
background
#F7F6FB
surface
#EDECF7
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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