#222C7B#222C7B

#222C7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.133 H 271.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#222C7B
RGBrgb(34, 44, 123)
HSLhsl(233, 57%, 31%)
HSVhsv(233, 72%, 48%)
CMYKcmyk(72.4%, 64.2%, 0%, 51.8%)
CIE-LABlab(22.20, 24.36, -46.20)
CIE-LCHlch(22.20, 52.23, 297.80°)
OKLaboklab(33.9% 0.0039 -0.1333)
OKLCHoklch(33.9% 0.133 271.7)
XYZxyz(5.1343, 3.5710, 19.1537)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222C7B #7B7122
analogous
#22587B #222C7B #44227B
triadic
#222C7B #7B222C #2C7B22
tetradic
#222C7B #7B2258 #7B7122 #227B44
square
#222C7B #7B2258 #7B7122 #227B44
split-complementary
#222C7B #7B4422 #587B22
monochromatic
#070A1B #151B4B #222C7B #2F3DAB #4A59CD

Accessibility & contrast

On white

12.25
#222C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#222C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222C7B
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222C7B#FFFFFF#000000##FFFFFF
##222C7B1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #222c7b;
/* rgb */ color: rgb(34, 44, 123);
/* oklch */ color: oklch(33.9% 0.133 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a65a2',
    500: '#222c7b',
    950: '#000000',
  },
}
SCSS
$custom: #222c7b;
$custom-light: #6a65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#222c7b",
  "rgb": {
    "r": 34,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 233.258,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33896,
    "c": 0.13339,
    "h": 271.7
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#222C7B
secondary
#AEA34B
accent
#CF48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #222C7B

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

Preview Lab → · Contrast checker → · Palette generator →

#222C7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva