#223371#223371

#223371 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.5% C 0.109 H 268.6°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#223371
RGBrgb(34, 51, 113)
HSLhsl(227, 54%, 29%)
HSVhsv(227, 70%, 44%)
CMYKcmyk(69.9%, 54.9%, 0%, 55.7%)
CIE-LABlab(23.34, 15.56, -37.98)
CIE-LCHlch(23.34, 41.04, 292.28°)
OKLaboklab(34.49% -0.0027 -0.1091)
OKLCHoklch(34.49% 0.109 268.6)
XYZxyz(4.8231, 3.8995, 16.1181)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#223371 #716022
analogous
#225B71 #223371 #392271
triadic
#223371 #712233 #337122
tetradic
#223371 #71225B #716022 #227139
square
#223371 #71225B #716022 #227139
split-complementary
#223371 #713922 #5B7122
monochromatic
#070B18 #141E42 #223371 #3048A0 #4662C7

Accessibility & contrast

On white

11.80
#223371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#223371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #223371
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##223371#FFFFFF#000000##FFFFFF
##2233711.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #223371;
/* rgb */ color: rgb(34, 51, 113);
/* oklch */ color: oklch(34.5% 0.109 268.6);
Tailwind
colors: {
  custom: {
    50: '#676a9a',
    500: '#223371',
    950: '#000000',
  },
}
SCSS
$custom: #223371;
$custom-light: #676a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#223371",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 227.089,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.1091,
    "h": 268.6
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#223371
secondary
#A4914A
accent
#BE4BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #223371

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

Preview Lab → · Contrast checker → · Palette generator →

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