#223171#223171

#223171 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.112 H 269.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#223171
RGBrgb(34, 49, 113)
HSLhsl(229, 54%, 29%)
HSVhsv(229, 70%, 44%)
CMYKcmyk(69.9%, 56.6%, 0%, 55.7%)
CIE-LABlab(22.75, 16.97, -38.92)
CIE-LCHlch(22.75, 42.46, 293.56°)
OKLaboklab(34.05% -0.0007 -0.1119)
OKLCHoklch(34.05% 0.112 269.6)
XYZxyz(4.7376, 3.7285, 16.0896)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223171 #716222
analogous
#225971 #223171 #3B2271
triadic
#223171 #712231 #317122
tetradic
#223171 #712259 #716222 #22713B
square
#223171 #712259 #716222 #22713B
split-complementary
#223171 #713B22 #597122
monochromatic
#070A18 #141D42 #223171 #3045A0 #465FC7

Accessibility & contrast

On white

12.03
#223171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#223171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223171
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223171#FFFFFF#000000##FFFFFF
##2231711.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033A73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #223171;
/* rgb */ color: rgb(34, 49, 113);
/* oklch */ color: oklch(34.0% 0.112 269.6);
Tailwind
colors: {
  custom: {
    50: '#67689a',
    500: '#223171',
    950: '#000000',
  },
}
SCSS
$custom: #223171;
$custom-light: #67689a;
$custom-dark: #000000;
JSON
{
  "hex": "#223171",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 228.608,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34047,
    "c": 0.11187,
    "h": 269.6
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#223171
secondary
#A4934A
accent
#C14BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #223171

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

Preview Lab → · Contrast checker → · Palette generator →

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