#223887#223887

#223887 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.135 H 267.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#223887
RGBrgb(34, 56, 135)
HSLhsl(227, 60%, 33%)
HSVhsv(227, 75%, 53%)
CMYKcmyk(74.8%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.50, 20.72, -46.74)
CIE-LCHlch(26.50, 51.13, 293.91°)
OKLaboklab(37.41% -0.0057 -0.1348)
OKLCHoklch(37.41% 0.135 267.6)
XYZxyz(6.4455, 4.9170, 23.5264)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223887 #877122
analogous
#226A87 #223887 #3F2287
triadic
#223887 #872238 #388722
tetradic
#223887 #87226A #877122 #22873F
square
#223887 #87226A #877122 #22873F
split-complementary
#223887 #873F22 #6A8722
monochromatic
#090F25 #162456 #223887 #2E4CB8 #506DD3

Accessibility & contrast

On white

10.59
#223887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#223887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223887
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223887#FFFFFF#000000##FFFFFF
##2238871.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #223887;
/* rgb */ color: rgb(34, 56, 135);
/* oklch */ color: oklch(37.4% 0.135 267.6);
Tailwind
colors: {
  custom: {
    50: '#6c6eab',
    500: '#223887',
    950: '#000000',
  },
}
SCSS
$custom: #223887;
$custom-light: #6c6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#223887",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 226.931,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37412,
    "c": 0.13489,
    "h": 267.6
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#223887
secondary
#B7A04E
accent
#C045E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #223887

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

Preview Lab → · Contrast checker → · Palette generator →

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