#223878#223878

#223878 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.113 H 266.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#223878
RGBrgb(34, 56, 120)
HSLhsl(225, 56%, 30%)
HSVhsv(225, 72%, 47%)
CMYKcmyk(71.7%, 53.3%, 0%, 52.9%)
CIE-LABlab(25.33, 14.80, -39.21)
CIE-LCHlch(25.33, 41.91, 290.68°)
OKLaboklab(36.17% -0.0069 -0.1126)
OKLCHoklch(36.17% 0.113 266.5)
XYZxyz(5.4628, 4.5240, 18.3510)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223878 #786222
analogous
#226378 #223878 #372278
triadic
#223878 #782238 #387822
tetradic
#223878 #782263 #786222 #227837
square
#223878 #782263 #786222 #227837
split-complementary
#223878 #783722 #637822
monochromatic
#070B19 #142248 #223878 #304EA8 #496ACB

Accessibility & contrast

On white

11.02
#223878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #223878
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223878#FFFFFF#000000##FFFFFF
##2238781.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11407A
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#004752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #223878;
/* rgb */ color: rgb(34, 56, 120);
/* oklch */ color: oklch(36.2% 0.113 266.5);
Tailwind
colors: {
  custom: {
    50: '#696e9f',
    500: '#223878',
    950: '#000000',
  },
}
SCSS
$custom: #223878;
$custom-light: #696e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#223878",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 120
  },
  "hsl": {
    "h": 224.651,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36166,
    "c": 0.11282,
    "h": 266.5
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#223878
secondary
#AB924B
accent
#B949DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #223878

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

Preview Lab → · Contrast checker → · Palette generator →

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