#222F7B#222F7B

#222F7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.129 H 270.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#222F7B
RGBrgb(34, 47, 123)
HSLhsl(231, 57%, 31%)
HSVhsv(231, 72%, 48%)
CMYKcmyk(72.4%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.01, 22.28, -44.88)
CIE-LCHlch(23.01, 50.11, 296.40°)
OKLaboklab(34.49% 0.0014 -0.1294)
OKLCHoklch(34.49% 0.129 270.6)
XYZxyz(5.2501, 3.8027, 19.1924)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F7B #7B6E22
analogous
#225B7B #222F7B #41227B
triadic
#222F7B #7B222F #2F7B22
tetradic
#222F7B #7B225B #7B6E22 #227B41
square
#222F7B #7B225B #7B6E22 #227B41
split-complementary
#222F7B #7B4122 #5B7B22
monochromatic
#070A1B #151D4B #222F7B #2F41AB #4A5DCD

Accessibility & contrast

On white

11.93
#222F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#222F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F7B
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F7B#FFFFFF#000000##FFFFFF
##222F7B1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222f7b;
/* rgb */ color: rgb(34, 47, 123);
/* oklch */ color: oklch(34.5% 0.129 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a67a2',
    500: '#222f7b',
    950: '#000000',
  },
}
SCSS
$custom: #222f7b;
$custom-light: #6a67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#222f7b",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 231.236,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.12944,
    "h": 270.6
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#222F7B
secondary
#AE9F4B
accent
#CA48E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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