#222F9B#222F9B

#222F9B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.173 H 269.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#222F9B
RGBrgb(34, 47, 155)
HSLhsl(234, 64%, 37%)
HSVhsv(234, 78%, 61%)
CMYKcmyk(78.1%, 69.7%, 0%, 39.2%)
CIE-LABlab(25.98, 34.38, -59.93)
CIE-LCHlch(25.98, 69.09, 299.84°)
OKLaboklab(37.58% -0.0004 -0.1735)
OKLCHoklch(37.58% 0.173 269.9)
XYZxyz(7.5906, 4.7388, 31.5186)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F9B #9B8E22
analogous
#226B9B #222F9B #52229B
triadic
#222F9B #9B222F #2F9B22
tetradic
#222F9B #9B226B #9B8E22 #229B52
square
#222F9B #9B226B #9B8E22 #229B52
split-complementary
#222F9B #9B5222 #6B9B22
monochromatic
#0C1137 #172069 #222F9B #2D3ECD #5C6ADB

Accessibility & contrast

On white

10.78
#222F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#222F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F9B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F9B#FFFFFF#000000##FFFFFF
##222F9B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #222f9b;
/* rgb */ color: rgb(34, 47, 155);
/* oklch */ color: oklch(37.6% 0.173 269.9);
Tailwind
colors: {
  custom: {
    50: '#7268ba',
    500: '#222f9b',
    950: '#000000',
  },
}
SCSS
$custom: #222f9b;
$custom-light: #7268ba;
$custom-dark: #000000;
JSON
{
  "hex": "#222f9b",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 233.554,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37584,
    "c": 0.17348,
    "h": 269.9
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#222F9B
secondary
#C0B559
accent
#D541E7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #222F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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