#223A9C#223A9C

#223A9C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.162 H 267.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#223A9C
RGBrgb(34, 58, 156)
HSLhsl(228, 64%, 37%)
HSVhsv(228, 78%, 61%)
CMYKcmyk(78.2%, 62.8%, 0%, 38.8%)
CIE-LABlab(28.81, 27.52, -55.89)
CIE-LCHlch(28.81, 62.29, 296.21°)
OKLaboklab(39.69% -0.0069 -0.1616)
OKLCHoklch(39.69% 0.162 267.6)
XYZxyz(8.1714, 5.7656, 32.1283)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223A9C #9C8422
analogous
#22779C #223A9C #47229C
triadic
#223A9C #9C223A #3A9C22
tetradic
#223A9C #9C2277 #9C8422 #229C47
square
#223A9C #9C2277 #9C8422 #229C47
split-complementary
#223A9C #9C4722 #779C22
monochromatic
#0C1538 #17276A #223A9C #2D4DCE #5D76DC

Accessibility & contrast

On white

9.75
#223A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#223A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223A9C
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223A9C#FFFFFF#000000##FFFFFF
##223A9C1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #223a9c;
/* rgb */ color: rgb(34, 58, 156);
/* oklch */ color: oklch(39.7% 0.162 267.6);
Tailwind
colors: {
  custom: {
    50: '#7170ba',
    500: '#223a9c',
    950: '#000000',
  },
}
SCSS
$custom: #223a9c;
$custom-light: #7170ba;
$custom-dark: #000000;
JSON
{
  "hex": "#223a9c",
  "rgb": {
    "r": 34,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 228.197,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39691,
    "c": 0.16173,
    "h": 267.6
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

primary
#223A9C
secondary
#C0AC5A
accent
#C641E7
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #223A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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