#222E7F#222E7F

#222E7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.137 H 270.9°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#222E7F
RGBrgb(34, 46, 127)
HSLhsl(232, 58%, 32%)
HSVhsv(232, 73%, 50%)
CMYKcmyk(73.2%, 63.8%, 0%, 50.2%)
CIE-LABlab(23.09, 24.52, -47.28)
CIE-LCHlch(23.09, 53.26, 297.41°)
OKLaboklab(34.66% 0.0022 -0.1365)
OKLCHoklch(34.66% 0.137 270.9)
XYZxyz(5.4661, 3.8258, 20.5249)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222E7F #7F7322
analogous
#225D7F #222E7F #45227F
triadic
#222E7F #7F222E #2E7F22
tetradic
#222E7F #7F225D #7F7322 #227F45
square
#222E7F #7F225D #7F7322 #227F45
split-complementary
#222E7F #7F4522 #5D7F22
monochromatic
#080B1E #151D4F #222E7F #2F3FAF #4C5DCF

Accessibility & contrast

On white

11.90
#222E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#222E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222E7F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222E7F#FFFFFF#000000##FFFFFF
##222E7F1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222e7f;
/* rgb */ color: rgb(34, 46, 127);
/* oklch */ color: oklch(34.7% 0.137 270.9);
Tailwind
colors: {
  custom: {
    50: '#6b66a5',
    500: '#222e7f',
    950: '#000000',
  },
}
SCSS
$custom: #222e7f;
$custom-light: #6b66a5;
$custom-dark: #000000;
JSON
{
  "hex": "#222e7f",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 232.258,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34662,
    "c": 0.13651,
    "h": 270.9
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#222E7F
secondary
#B2A44B
accent
#CD47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #222E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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