#223877#223877

#223877 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.1% C 0.111 H 266.4°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#223877
RGBrgb(34, 56, 119)
HSLhsl(224, 56%, 30%)
HSVhsv(224, 71%, 47%)
CMYKcmyk(71.4%, 52.9%, 0%, 53.3%)
CIE-LABlab(25.26, 14.40, -38.70)
CIE-LCHlch(25.26, 41.29, 290.42°)
OKLaboklab(36.09% -0.007 -0.1111)
OKLCHoklch(36.09% 0.111 266.4)
XYZxyz(5.4025, 4.4998, 18.0330)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223877 #776122
analogous
#226277 #223877 #372277
triadic
#223877 #772238 #387722
tetradic
#223877 #772262 #776122 #227737
square
#223877 #772262 #776122 #227737
split-complementary
#223877 #773722 #627722
monochromatic
#070B18 #142247 #223877 #304EA7 #496ACB

Accessibility & contrast

On white

11.05
#223877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#223877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223877
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223877#FFFFFF#000000##FFFFFF
##2238771.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124079
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #223877;
/* rgb */ color: rgb(34, 56, 119);
/* oklch */ color: oklch(36.1% 0.111 266.4);
Tailwind
colors: {
  custom: {
    50: '#686e9f',
    500: '#223877',
    950: '#000000',
  },
}
SCSS
$custom: #223877;
$custom-light: #686e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#223877",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 119
  },
  "hsl": {
    "h": 224.471,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.36086,
    "c": 0.11132,
    "h": 266.4
  },
  "luminance": 0.045
}

Semantic roles & 50–950 ramp

primary
#223877
secondary
#AA914B
accent
#B849DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #223877

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

Preview Lab → · Contrast checker → · Palette generator →

#223877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva