#222F9D#222F9D

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

Color values

HEX#222F9D
RGBrgb(34, 47, 157)
HSLhsl(234, 64%, 37%)
HSVhsv(234, 78%, 62%)
CMYKcmyk(78.3%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.18, 35.11, -60.82)
CIE-LCHlch(26.18, 70.23, 300.00°)
OKLaboklab(37.79% -0.0006 -0.1761)
OKLCHoklch(37.79% 0.176 269.8)
XYZxyz(7.7599, 4.8066, 32.4105)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F9D #9D9022
analogous
#226C9D #222F9D #53229D
triadic
#222F9D #9D222F #2F9D22
tetradic
#222F9D #9D226C #9D9022 #229D53
square
#222F9D #9D226C #9D9022 #229D53
split-complementary
#222F9D #9D5322 #6C9D22
monochromatic
#0C1138 #17206B #222F9D #2D3ECF #5D6BDC

Accessibility & contrast

On white

10.71
#222F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#222F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F9D
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F9D#FFFFFF#000000##FFFFFF
##222F9D1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #222f9d;
/* rgb */ color: rgb(34, 47, 157);
/* oklch */ color: oklch(37.8% 0.176 269.8);
Tailwind
colors: {
  custom: {
    50: '#7368bb',
    500: '#222f9d',
    950: '#000000',
  },
}
SCSS
$custom: #222f9d;
$custom-light: #7368bb;
$custom-dark: #000000;
JSON
{
  "hex": "#222f9d",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 233.659,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37788,
    "c": 0.17609,
    "h": 269.8
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#222F9D
secondary
#C1B65A
accent
#D640E7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #222F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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