#223F9E#223F9E

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

Color values

HEX#223F9E
RGBrgb(34, 63, 158)
HSLhsl(226, 65%, 38%)
HSVhsv(226, 78%, 62%)
CMYKcmyk(78.5%, 60.1%, 0%, 38%)
CIE-LABlab(30.31, 24.92, -54.66)
CIE-LCHlch(30.31, 60.07, 294.51°)
OKLaboklab(40.86% -0.0102 -0.1579)
OKLCHoklch(40.86% 0.158 266.3)
XYZxyz(8.6066, 6.3627, 33.1157)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F9E #9E8122
analogous
#227D9E #223F9E #43229E
triadic
#223F9E #9E223F #3F9E22
tetradic
#223F9E #9E227D #9E8122 #229E43
square
#223F9E #9E227D #9E8122 #229E43
split-complementary
#223F9E #9E4322 #7D9E22
monochromatic
#0C1739 #172B6C #223F9E #2D53D0 #5E7CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##223F9E#FFFFFF#000000##FFFFFF
##223F9E1.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)
#004DA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #223f9e;
/* rgb */ color: rgb(34, 63, 158);
/* oklch */ color: oklch(40.9% 0.158 266.3);
Tailwind
colors: {
  custom: {
    50: '#7173bb',
    500: '#223f9e',
    950: '#000000',
  },
}
SCSS
$custom: #223f9e;
$custom-light: #7173bb;
$custom-dark: #000000;
JSON
{
  "hex": "#223f9e",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 225.968,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40857,
    "c": 0.15823,
    "h": 266.3
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#223F9E
secondary
#C1A95B
accent
#C040E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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