#222F8A#222F8A

#222F8A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.151 H 270.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#222F8A
RGBrgb(34, 47, 138)
HSLhsl(233, 60%, 34%)
HSVhsv(233, 75%, 54%)
CMYKcmyk(75.4%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.35, 28.04, -52.12)
CIE-LCHlch(24.35, 59.19, 298.28°)
OKLaboklab(35.9% 0.001 -0.1507)
OKLCHoklch(35.9% 0.151 270.4)
XYZxyz(6.2621, 4.2074, 24.5219)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F8A #8A7D22
analogous
#22638A #222F8A #49228A
triadic
#222F8A #8A222F #2F8A22
tetradic
#222F8A #8A2263 #8A7D22 #228A49
square
#222F8A #8A2263 #8A7D22 #228A49
split-complementary
#222F8A #8A4922 #638A22
monochromatic
#0A0E28 #161E59 #222F8A #2E40BB #5262D4

Accessibility & contrast

On white

11.40
#222F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#222F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F8A
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F8A#FFFFFF#000000##FFFFFF
##222F8A1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #222f8a;
/* rgb */ color: rgb(34, 47, 138);
/* oklch */ color: oklch(35.9% 0.151 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e67ad',
    500: '#222f8a',
    950: '#000000',
  },
}
SCSS
$custom: #222f8a;
$custom-light: #6e67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#222f8a",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 232.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35897,
    "c": 0.15066,
    "h": 270.4
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#222F8A
secondary
#B8AB50
accent
#D044E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #222F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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