#223162#223162

#223162 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.089 H 268.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#223162
RGBrgb(34, 49, 98)
HSLhsl(226, 48%, 26%)
HSVhsv(226, 65%, 38%)
CMYKcmyk(65.3%, 50%, 0%, 61.6%)
CIE-LABlab(21.65, 11.09, -30.99)
CIE-LCHlch(21.65, 32.92, 289.70°)
OKLaboklab(32.86% -0.0025 -0.0885)
OKLCHoklch(32.86% 0.089 268.4)
XYZxyz(3.9619, 3.4182, 12.0039)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223162 #625322
analogous
#225162 #223162 #332262
triadic
#223162 #622231 #316222
tetradic
#223162 #622251 #625322 #226233
square
#223162 #622251 #625322 #226233
split-complementary
#223162 #623322 #516222
monochromatic
#080B17 #121A35 #223162 #32488F #425EBD

Accessibility & contrast

On white

12.47
#223162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#223162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223162
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223162#FFFFFF#000000##FFFFFF
##2231621.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193764
Deuteranopia (green-blind)
#0E3161
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #223162;
/* rgb */ color: rgb(34, 49, 98);
/* oklch */ color: oklch(32.9% 0.089 268.4);
Tailwind
colors: {
  custom: {
    50: '#64688f',
    500: '#223162',
    950: '#000000',
  },
}
SCSS
$custom: #223162;
$custom-light: #64688f;
$custom-dark: #000000;
JSON
{
  "hex": "#223162",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 98
  },
  "hsl": {
    "h": 225.938,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32855,
    "c": 0.08858,
    "h": 268.4
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#223162
secondary
#96844A
accent
#B850D8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #223162

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

Preview Lab → · Contrast checker → · Palette generator →

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