#222F9F#222F9F

#222F9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.179 H 269.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#222F9F
RGBrgb(34, 47, 159)
HSLhsl(234, 65%, 38%)
HSVhsv(234, 79%, 62%)
CMYKcmyk(78.6%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.38, 35.84, -61.71)
CIE-LCHlch(26.38, 71.36, 300.15°)
OKLaboklab(37.99% -0.0008 -0.1787)
OKLCHoklch(37.99% 0.179 269.7)
XYZxyz(7.9321, 4.8754, 33.3172)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F9F #9F9222
analogous
#226D9F #222F9F #53229F
triadic
#222F9F #9F222F #2F9F22
tetradic
#222F9F #9F226D #9F9222 #229F53
square
#222F9F #9F226D #9F9222 #229F53
split-complementary
#222F9F #9F5322 #6D9F22
monochromatic
#0C113A #17206D #222F9F #2D3ED1 #5F6CDD

Accessibility & contrast

On white

10.63
#222F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#222F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F9F
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F9F#FFFFFF#000000##FFFFFF
##222F9F1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222f9f;
/* rgb */ color: rgb(34, 47, 159);
/* oklch */ color: oklch(38.0% 0.179 269.7);
Tailwind
colors: {
  custom: {
    50: '#7368bc',
    500: '#222f9f',
    950: '#000000',
  },
}
SCSS
$custom: #222f9f;
$custom-light: #7368bc;
$custom-dark: #000000;
JSON
{
  "hex": "#222f9f",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 233.76,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37994,
    "c": 0.17868,
    "h": 269.7
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#222F9F
secondary
#C1B75B
accent
#D640E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #222F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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