#222F7A#222F7A

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

Color values

HEX#222F7A
RGBrgb(34, 47, 122)
HSLhsl(231, 56%, 31%)
HSVhsv(231, 72%, 48%)
CMYKcmyk(72.1%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.92, 21.90, -44.39)
CIE-LCHlch(22.92, 49.49, 296.26°)
OKLaboklab(34.41% 0.0014 -0.128)
OKLCHoklch(34.41% 0.128 270.6)
XYZxyz(5.1879, 3.7777, 18.8644)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F7A #7A6D22
analogous
#225B7A #222F7A #41227A
triadic
#222F7A #7A222F #2F7A22
tetradic
#222F7A #7A225B #7A6D22 #227A41
square
#222F7A #7A225B #7A6D22 #227A41
split-complementary
#222F7A #7A4122 #5B7A22
monochromatic
#070A1A #151D4A #222F7A #2F41AA #4A5DCD

Accessibility & contrast

On white

11.96
#222F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222F7A
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F7A#FFFFFF#000000##FFFFFF
##222F7A1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222f7a;
/* rgb */ color: rgb(34, 47, 122);
/* oklch */ color: oklch(34.4% 0.128 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a67a1',
    500: '#222f7a',
    950: '#000000',
  },
}
SCSS
$custom: #222f7a;
$custom-light: #6a67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#222f7a",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 231.136,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.12798,
    "h": 270.6
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#222F7A
secondary
#AD9E4B
accent
#C948E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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