#222E7D#222E7D

#222E7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.134 H 271.0°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#222E7D
RGBrgb(34, 46, 125)
HSLhsl(232, 57%, 31%)
HSVhsv(232, 73%, 49%)
CMYKcmyk(72.8%, 63.2%, 0%, 51%)
CIE-LABlab(22.91, 23.75, -46.31)
CIE-LCHlch(22.91, 52.04, 297.15°)
OKLaboklab(34.48% 0.0022 -0.1336)
OKLCHoklch(34.48% 0.134 271)
XYZxyz(5.3371, 3.7742, 19.8453)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222E7D #7D7122
analogous
#225B7D #222E7D #43227D
triadic
#222E7D #7D222E #2E7D22
tetradic
#222E7D #7D225B #7D7122 #227D43
square
#222E7D #7D225B #7D7122 #227D43
split-complementary
#222E7D #7D4322 #5B7D22
monochromatic
#080B1D #151C4D #222E7D #2F40AD #4B5DCE

Accessibility & contrast

On white

11.97
#222E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#222E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222E7D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222E7D#FFFFFF#000000##FFFFFF
##222E7D1.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #222e7d;
/* rgb */ color: rgb(34, 46, 125);
/* oklch */ color: oklch(34.5% 0.134 271.0);
Tailwind
colors: {
  custom: {
    50: '#6b66a3',
    500: '#222e7d',
    950: '#000000',
  },
}
SCSS
$custom: #222e7d;
$custom-light: #6b66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222e7d",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 232.088,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.13365,
    "h": 271
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#222E7D
secondary
#B0A24B
accent
#CC47E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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