#223A87#223A87

#223A87 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.132 H 266.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#223A87
RGBrgb(34, 58, 135)
HSLhsl(226, 60%, 33%)
HSVhsv(226, 75%, 53%)
CMYKcmyk(74.8%, 57%, 0%, 47.1%)
CIE-LABlab(27.06, 19.33, -45.83)
CIE-LCHlch(27.06, 49.74, 292.87°)
OKLaboklab(37.83% -0.0074 -0.132)
OKLCHoklch(37.83% 0.132 266.8)
XYZxyz(6.5444, 5.1148, 23.5593)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223A87 #876F22
analogous
#226C87 #223A87 #3D2287
triadic
#223A87 #87223A #3A8722
tetradic
#223A87 #87226C #876F22 #22873D
square
#223A87 #87226C #876F22 #22873D
split-complementary
#223A87 #873D22 #6C8722
monochromatic
#091025 #162556 #223A87 #2E4FB8 #506FD3

Accessibility & contrast

On white

10.38
#223A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#223A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223A87
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223A87#FFFFFF#000000##FFFFFF
##223A871.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #223a87;
/* rgb */ color: rgb(34, 58, 135);
/* oklch */ color: oklch(37.8% 0.132 266.8);
Tailwind
colors: {
  custom: {
    50: '#6c6fab',
    500: '#223a87',
    950: '#000000',
  },
}
SCSS
$custom: #223a87;
$custom-light: #6c6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#223a87",
  "rgb": {
    "r": 34,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 225.743,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37834,
    "c": 0.13226,
    "h": 266.8
  },
  "luminance": 0.05115
}

Semantic roles & 50–950 ramp

primary
#223A87
secondary
#B79E4E
accent
#BD45E3
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #223A87

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

Preview Lab → · Contrast checker → · Palette generator →

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