#222F81#222F81

#222F81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.138 H 270.6°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#222F81
RGBrgb(34, 47, 129)
HSLhsl(232, 58%, 32%)
HSVhsv(232, 74%, 51%)
CMYKcmyk(73.6%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.53, 24.60, -47.82)
CIE-LCHlch(23.53, 53.78, 297.22°)
OKLaboklab(35.05% 0.0013 -0.138)
OKLCHoklch(35.05% 0.138 270.6)
XYZxyz(5.6373, 3.9575, 21.2314)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222F81 #817422
analogous
#225F81 #222F81 #442281
triadic
#222F81 #81222F #2F8122
tetradic
#222F81 #81225F #817422 #228144
square
#222F81 #81225F #817422 #228144
split-complementary
#222F81 #814422 #5F8122
monochromatic
#080C20 #151D51 #222F81 #2F41B1 #4D5FD0

Accessibility & contrast

On white

11.72
#222F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#222F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222F81
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222F81#FFFFFF#000000##FFFFFF
##222F811.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #222f81;
/* rgb */ color: rgb(34, 47, 129);
/* oklch */ color: oklch(35.0% 0.138 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b67a6',
    500: '#222f81',
    950: '#000000',
  },
}
SCSS
$custom: #222f81;
$custom-light: #6b67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#222f81",
  "rgb": {
    "r": 34,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 231.789,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35045,
    "c": 0.13806,
    "h": 270.6
  },
  "luminance": 0.03958
}

Semantic roles & 50–950 ramp

primary
#222F81
secondary
#B3A54B
accent
#CC46E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #222F81

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

Preview Lab → · Contrast checker → · Palette generator →

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