#222F8F#222F8F

#222F8F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.158 H 270.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#222F8F
RGBrgb(34, 47, 143)
HSLhsl(233, 62%, 35%)
HSVhsv(233, 76%, 56%)
CMYKcmyk(76.2%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.81, 29.93, -54.46)
CIE-LCHlch(24.81, 62.14, 298.79°)
OKLaboklab(36.38% 0.0007 -0.1575)
OKLCHoklch(36.38% 0.158 270.2)
XYZxyz(6.6324, 4.3556, 26.4724)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F8F #8F8222
analogous
#22668F #222F8F #4C228F
triadic
#222F8F #8F222F #2F8F22
tetradic
#222F8F #8F2266 #8F8222 #228F4C
square
#222F8F #8F2266 #8F8222 #228F4C
split-complementary
#222F8F #8F4C22 #668F22
monochromatic
#0A0E2C #161F5E #222F8F #2E3FC0 #5564D7

Accessibility & contrast

On white

11.22
#222F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#222F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F8F
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F8F#FFFFFF#000000##FFFFFF
##222F8F1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #222f8f;
/* rgb */ color: rgb(34, 47, 143);
/* oklch */ color: oklch(36.4% 0.158 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f67b1',
    500: '#222f8f',
    950: '#000000',
  },
}
SCSS
$custom: #222f8f;
$custom-light: #6f67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#222f8f",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 232.844,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36383,
    "c": 0.1575,
    "h": 270.2
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#222F8F
secondary
#BAAE52
accent
#D143E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #222F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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