#222F9E#222F9E

#222F9E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.177 H 269.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#222F9E
RGBrgb(34, 47, 158)
HSLhsl(234, 65%, 38%)
HSVhsv(234, 78%, 62%)
CMYKcmyk(78.5%, 70.3%, 0%, 38%)
CIE-LABlab(26.28, 35.48, -61.26)
CIE-LCHlch(26.28, 70.80, 300.07°)
OKLaboklab(37.89% -0.0007 -0.1774)
OKLCHoklch(37.89% 0.177 269.8)
XYZxyz(7.8456, 4.8409, 32.8620)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F9E #9E9122
analogous
#226D9E #222F9E #53229E
triadic
#222F9E #9E222F #2F9E22
tetradic
#222F9E #9E226D #9E9122 #229E53
square
#222F9E #9E226D #9E9122 #229E53
split-complementary
#222F9E #9E5322 #6D9E22
monochromatic
#0C1139 #17206C #222F9E #2D3ED0 #5E6BDC

Accessibility & contrast

On white

10.67
#222F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#222F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F9E
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F9E#FFFFFF#000000##FFFFFF
##222F9E1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222f9e;
/* rgb */ color: rgb(34, 47, 158);
/* oklch */ color: oklch(37.9% 0.177 269.8);
Tailwind
colors: {
  custom: {
    50: '#7368bc',
    500: '#222f9e',
    950: '#000000',
  },
}
SCSS
$custom: #222f9e;
$custom-light: #7368bc;
$custom-dark: #000000;
JSON
{
  "hex": "#222f9e",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 233.71,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37891,
    "c": 0.17738,
    "h": 269.8
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#222F9E
secondary
#C1B65B
accent
#D640E8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #222F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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