#223F9F#223F9F

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

Color values

HEX#223F9F
RGBrgb(34, 63, 159)
HSLhsl(226, 65%, 38%)
HSVhsv(226, 79%, 62%)
CMYKcmyk(78.6%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.39, 25.30, -55.12)
CIE-LCHlch(30.39, 60.65, 294.66°)
OKLaboklab(40.95% -0.0102 -0.1593)
OKLCHoklch(40.95% 0.16 266.4)
XYZxyz(8.6930, 6.3973, 33.5708)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223F9F #9F8222
analogous
#227D9F #223F9F #43229F
triadic
#223F9F #9F223F #3F9F22
tetradic
#223F9F #9F227D #9F8222 #229F43
square
#223F9F #9F227D #9F8222 #229F43
split-complementary
#223F9F #9F4322 #7D9F22
monochromatic
#0C173A #172B6D #223F9F #2D53D1 #5F7CDD

Accessibility & contrast

On white

9.21
#223F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#223F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223F9F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223F9F#FFFFFF#000000##FFFFFF
##223F9F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #223f9f;
/* rgb */ color: rgb(34, 63, 159);
/* oklch */ color: oklch(40.9% 0.160 266.4);
Tailwind
colors: {
  custom: {
    50: '#7273bc',
    500: '#223f9f',
    950: '#000000',
  },
}
SCSS
$custom: #223f9f;
$custom-light: #7273bc;
$custom-dark: #000000;
JSON
{
  "hex": "#223f9f",
  "rgb": {
    "r": 34,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 226.08,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40946,
    "c": 0.1596,
    "h": 266.4
  },
  "luminance": 0.06398
}

Semantic roles & 50–950 ramp

primary
#223F9F
secondary
#C1AA5B
accent
#C140E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #223F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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