#223787#223787

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

Color values

HEX#223787
RGBrgb(34, 55, 135)
HSLhsl(228, 60%, 33%)
HSVhsv(228, 75%, 53%)
CMYKcmyk(74.8%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.22, 21.41, -47.19)
CIE-LCHlch(26.22, 51.82, 294.40°)
OKLaboklab(37.2% -0.0049 -0.1361)
OKLCHoklch(37.2% 0.136 267.9)
XYZxyz(6.3975, 4.8211, 23.5104)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223787 #877222
analogous
#226987 #223787 #402287
triadic
#223787 #872237 #378722
tetradic
#223787 #872269 #877222 #228740
square
#223787 #872269 #877222 #228740
split-complementary
#223787 #874022 #698722
monochromatic
#090F25 #162356 #223787 #2E4BB8 #506CD3

Accessibility & contrast

On white

10.69
#223787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #223787
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223787#FFFFFF#000000##FFFFFF
##2237871.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #223787;
/* rgb */ color: rgb(34, 55, 135);
/* oklch */ color: oklch(37.2% 0.136 267.9);
Tailwind
colors: {
  custom: {
    50: '#6c6dab',
    500: '#223787',
    950: '#000000',
  },
}
SCSS
$custom: #223787;
$custom-light: #6c6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#223787",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 227.525,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37204,
    "c": 0.1362,
    "h": 267.9
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#223787
secondary
#B7A14E
accent
#C245E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #223787

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

Preview Lab → · Contrast checker → · Palette generator →

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