#222F98#222F98

#222F98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.170 H 270.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#222F98
RGBrgb(34, 47, 152)
HSLhsl(233, 63%, 36%)
HSVhsv(233, 78%, 60%)
CMYKcmyk(77.6%, 69.1%, 0%, 40.4%)
CIE-LABlab(25.68, 33.28, -58.58)
CIE-LCHlch(25.68, 67.37, 299.60°)
OKLaboklab(37.28% -0.0001 -0.1695)
OKLCHoklch(37.28% 0.17 270)
XYZxyz(7.3418, 4.6393, 30.2082)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F98 #988B22
analogous
#226A98 #222F98 #502298
triadic
#222F98 #98222F #2F9822
tetradic
#222F98 #98226A #988B22 #229850
square
#222F98 #98226A #988B22 #229850
split-complementary
#222F98 #985022 #6A9822
monochromatic
#0C1034 #172066 #222F98 #2D3ECA #5A68DA

Accessibility & contrast

On white

10.89
#222F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#222F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F98
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F98#FFFFFF#000000##FFFFFF
##222F981.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #222f98;
/* rgb */ color: rgb(34, 47, 152);
/* oklch */ color: oklch(37.3% 0.170 270.0);
Tailwind
colors: {
  custom: {
    50: '#7168b7',
    500: '#222f98',
    950: '#000000',
  },
}
SCSS
$custom: #222f98;
$custom-light: #7168b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222f98",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 233.39,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3728,
    "c": 0.16954,
    "h": 270
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#222F98
secondary
#BEB357
accent
#D441E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #222F98

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

Preview Lab → · Contrast checker → · Palette generator →

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