#222F7F#222F7F

#222F7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.135 H 270.6°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#222F7F
RGBrgb(34, 47, 127)
HSLhsl(232, 58%, 32%)
HSVhsv(232, 73%, 50%)
CMYKcmyk(73.2%, 63%, 0%, 50.2%)
CIE-LABlab(23.35, 23.83, -46.85)
CIE-LCHlch(23.35, 52.56, 296.96°)
OKLaboklab(34.86% 0.0014 -0.1352)
OKLCHoklch(34.86% 0.135 270.6)
XYZxyz(5.5057, 3.9049, 20.5381)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F7F #7F7222
analogous
#225E7F #222F7F #44227F
triadic
#222F7F #7F222F #2F7F22
tetradic
#222F7F #7F225E #7F7222 #227F44
square
#222F7F #7F225E #7F7222 #227F44
split-complementary
#222F7F #7F4422 #5E7F22
monochromatic
#080B1E #151D4F #222F7F #2F41AF #4C5FCF

Accessibility & contrast

On white

11.79
#222F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#222F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F7F
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F7F#FFFFFF#000000##FFFFFF
##222F7F1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222f7f;
/* rgb */ color: rgb(34, 47, 127);
/* oklch */ color: oklch(34.9% 0.135 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b67a5',
    500: '#222f7f',
    950: '#000000',
  },
}
SCSS
$custom: #222f7f;
$custom-light: #6b67a5;
$custom-dark: #000000;
JSON
{
  "hex": "#222f7f",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 231.613,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3486,
    "c": 0.13521,
    "h": 270.6
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#222F7F
secondary
#B2A34B
accent
#CB47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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