#223786#223786

#223786 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.135 H 267.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#223786
RGBrgb(34, 55, 134)
HSLhsl(227, 60%, 33%)
HSVhsv(227, 75%, 53%)
CMYKcmyk(74.6%, 59%, 0%, 47.5%)
CIE-LABlab(26.14, 21.02, -46.71)
CIE-LCHlch(26.14, 51.22, 294.23°)
OKLaboklab(37.12% -0.005 -0.1347)
OKLCHoklch(37.12% 0.135 267.9)
XYZxyz(6.3275, 4.7930, 23.1413)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223786 #867122
analogous
#226986 #223786 #3F2286
triadic
#223786 #862237 #378622
tetradic
#223786 #862269 #867122 #22863F
square
#223786 #862269 #867122 #22863F
split-complementary
#223786 #863F22 #698622
monochromatic
#090F24 #162355 #223786 #2E4BB7 #506BD3

Accessibility & contrast

On white

10.72
#223786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#223786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223786
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223786#FFFFFF#000000##FFFFFF
##2237861.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #223786;
/* rgb */ color: rgb(34, 55, 134);
/* oklch */ color: oklch(37.1% 0.135 267.9);
Tailwind
colors: {
  custom: {
    50: '#6c6daa',
    500: '#223786',
    950: '#000000',
  },
}
SCSS
$custom: #223786;
$custom-light: #6c6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#223786",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 227.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37117,
    "c": 0.13476,
    "h": 267.9
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#223786
secondary
#B6A04E
accent
#C245E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #223786

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

Preview Lab → · Contrast checker → · Palette generator →

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