#222A7B#222A7B

#222A7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.136 H 272.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#222A7B
RGBrgb(34, 42, 123)
HSLhsl(235, 57%, 31%)
HSVhsv(235, 72%, 48%)
CMYKcmyk(72.4%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.67, 25.73, -47.06)
CIE-LCHlch(21.67, 53.63, 298.66°)
OKLaboklab(33.51% 0.0055 -0.1359)
OKLCHoklch(33.51% 0.136 272.3)
XYZxyz(5.0616, 3.4256, 19.1295)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222A7B #7B7322
analogous
#22567B #222A7B #46227B
triadic
#222A7B #7B222A #2A7B22
tetradic
#222A7B #7B2256 #7B7322 #227B46
square
#222A7B #7B2256 #7B7322 #227B46
split-complementary
#222A7B #7B4622 #567B22
monochromatic
#07091B #151A4B #222A7B #2F3AAB #4A56CD

Accessibility & contrast

On white

12.46
#222A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#222A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222A7B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222A7B#FFFFFF#000000##FFFFFF
##222A7B1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #222a7b;
/* rgb */ color: rgb(34, 42, 123);
/* oklch */ color: oklch(33.5% 0.136 272.3);
Tailwind
colors: {
  custom: {
    50: '#6a63a2',
    500: '#222a7b',
    950: '#000000',
  },
}
SCSS
$custom: #222a7b;
$custom-light: #6a63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#222a7b",
  "rgb": {
    "r": 34,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 234.607,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.13598,
    "h": 272.3
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#222A7B
secondary
#AEA54B
accent
#D248E0
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #222A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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