#223F9D#223F9D

#223F9D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.157 H 266.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#223F9D
RGBrgb(34, 63, 157)
HSLhsl(226, 64%, 37%)
HSVhsv(226, 78%, 62%)
CMYKcmyk(78.3%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.23, 24.53, -54.18)
CIE-LCHlch(30.23, 59.48, 294.35°)
OKLaboklab(40.77% -0.0102 -0.1565)
OKLCHoklch(40.77% 0.157 266.3)
XYZxyz(8.5209, 6.3285, 32.6642)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F9D #9D8022
analogous
#227C9D #223F9D #43229D
triadic
#223F9D #9D223F #3F9D22
tetradic
#223F9D #9D227C #9D8022 #229D43
square
#223F9D #9D227C #9D8022 #229D43
split-complementary
#223F9D #9D4322 #7C9D22
monochromatic
#0C1738 #172B6B #223F9D #2D53CF #5D7BDC

Accessibility & contrast

On white

9.27
#223F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #223F9D
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F9D#FFFFFF#000000##FFFFFF
##223F9D1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #223f9d;
/* rgb */ color: rgb(34, 63, 157);
/* oklch */ color: oklch(40.8% 0.157 266.3);
Tailwind
colors: {
  custom: {
    50: '#7173bb',
    500: '#223f9d',
    950: '#000000',
  },
}
SCSS
$custom: #223f9d;
$custom-light: #7173bb;
$custom-dark: #000000;
JSON
{
  "hex": "#223f9d",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 225.854,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40769,
    "c": 0.15685,
    "h": 266.3
  },
  "luminance": 0.06329
}

Semantic roles & 50–950 ramp

primary
#223F9D
secondary
#C1A85A
accent
#C040E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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