#222F97#222F97

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

Color values

HEX#222F97
RGBrgb(34, 47, 151)
HSLhsl(233, 63%, 36%)
HSVhsv(233, 77%, 59%)
CMYKcmyk(77.5%, 68.9%, 0%, 40.8%)
CIE-LABlab(25.58, 32.91, -58.13)
CIE-LCHlch(25.58, 66.80, 299.52°)
OKLaboklab(37.18% 0 -0.1682)
OKLCHoklch(37.18% 0.168 270)
XYZxyz(7.2602, 4.6067, 29.7787)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F97 #978A22
analogous
#226A97 #222F97 #502297
triadic
#222F97 #97222F #2F9722
tetradic
#222F97 #97226A #978A22 #229750
square
#222F97 #97226A #978A22 #229750
split-complementary
#222F97 #975022 #6A9722
monochromatic
#0C1033 #171F65 #222F97 #2D3FC9 #5A68DA

Accessibility & contrast

On white

10.93
#222F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#222F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F97
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F97#FFFFFF#000000##FFFFFF
##222F971.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #222f97;
/* rgb */ color: rgb(34, 47, 151);
/* oklch */ color: oklch(37.2% 0.168 270.0);
Tailwind
colors: {
  custom: {
    50: '#7168b7',
    500: '#222f97',
    950: '#000000',
  },
}
SCSS
$custom: #222f97;
$custom-light: #7168b7;
$custom-dark: #000000;
JSON
{
  "hex": "#222f97",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 233.333,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37179,
    "c": 0.16822,
    "h": 270
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222F97

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

Preview Lab → · Contrast checker → · Palette generator →

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