#222F7D#222F7D

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

Color values

HEX#222F7D
RGBrgb(34, 47, 125)
HSLhsl(231, 57%, 31%)
HSVhsv(231, 73%, 49%)
CMYKcmyk(72.8%, 62.4%, 0%, 51%)
CIE-LABlab(23.18, 23.06, -45.87)
CIE-LCHlch(23.18, 51.34, 296.69°)
OKLaboklab(34.68% 0.0014 -0.1323)
OKLCHoklch(34.68% 0.132 270.6)
XYZxyz(5.3766, 3.8532, 19.8585)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F7D #7D7022
analogous
#225C7D #222F7D #42227D
triadic
#222F7D #7D222F #2F7D22
tetradic
#222F7D #7D225C #7D7022 #227D42
square
#222F7D #7D225C #7D7022 #227D42
split-complementary
#222F7D #7D4222 #5C7D22
monochromatic
#080B1D #151D4D #222F7D #2F41AD #4B5ECE

Accessibility & contrast

On white

11.86
#222F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F7D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F7D#FFFFFF#000000##FFFFFF
##222F7D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222f7d;
/* rgb */ color: rgb(34, 47, 125);
/* oklch */ color: oklch(34.7% 0.132 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a67a3',
    500: '#222f7d',
    950: '#000000',
  },
}
SCSS
$custom: #222f7d;
$custom-light: #6a67a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222f7d",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 231.429,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34677,
    "c": 0.13233,
    "h": 270.6
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#222F7D
secondary
#B0A14B
accent
#CB47E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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