#223166#223166

#223166 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.095 H 268.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#223166
RGBrgb(34, 49, 102)
HSLhsl(227, 50%, 27%)
HSVhsv(227, 67%, 40%)
CMYKcmyk(66.7%, 52%, 0%, 60%)
CIE-LABlab(21.93, 12.66, -33.15)
CIE-LCHlch(21.93, 35.48, 290.90°)
OKLaboklab(33.16% -0.0019 -0.0949)
OKLCHoklch(33.16% 0.095 268.9)
XYZxyz(4.1555, 3.4957, 13.0235)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223166 #665722
analogous
#225366 #223166 #352266
triadic
#223166 #662231 #316622
tetradic
#223166 #662253 #665722 #226635
square
#223166 #662253 #665722 #226635
split-complementary
#223166 #663522 #536622
monochromatic
#080B17 #131B38 #223166 #314794 #425EC0

Accessibility & contrast

On white

12.36
#223166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#223166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223166
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223166#FFFFFF#000000##FFFFFF
##2231661.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153868
Deuteranopia (green-blind)
#073265
Tritanopia (blue-blind)
#003D46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #223166;
/* rgb */ color: rgb(34, 49, 102);
/* oklch */ color: oklch(33.2% 0.095 268.9);
Tailwind
colors: {
  custom: {
    50: '#656892',
    500: '#223166',
    950: '#000000',
  },
}
SCSS
$custom: #223166;
$custom-light: #656892;
$custom-dark: #000000;
JSON
{
  "hex": "#223166",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 226.765,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3316,
    "c": 0.0949,
    "h": 268.9
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#223166
secondary
#9A884A
accent
#BB4EDA
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #223166

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

Preview Lab → · Contrast checker → · Palette generator →

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