#222E7C#222E7C

#222E7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.132 H 271.0°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#222E7C
RGBrgb(34, 46, 124)
HSLhsl(232, 57%, 31%)
HSVhsv(232, 73%, 49%)
CMYKcmyk(72.6%, 62.9%, 0%, 51.4%)
CIE-LABlab(22.82, 23.36, -45.82)
CIE-LCHlch(22.82, 51.43, 297.02°)
OKLaboklab(34.39% 0.0022 -0.1322)
OKLCHoklch(34.39% 0.132 271)
XYZxyz(5.2735, 3.7488, 19.5105)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222E7C #7C7022
analogous
#225B7C #222E7C #43227C
triadic
#222E7C #7C222E #2E7C22
tetradic
#222E7C #7C225B #7C7022 #227C43
square
#222E7C #7C225B #7C7022 #227C43
split-complementary
#222E7C #7C4322 #5B7C22
monochromatic
#080A1C #151C4C #222E7C #2F40AC #4B5CCE

Accessibility & contrast

On white

12.00
#222E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#222E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222E7C
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222E7C#FFFFFF#000000##FFFFFF
##222E7C1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #222e7c;
/* rgb */ color: rgb(34, 46, 124);
/* oklch */ color: oklch(34.4% 0.132 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a66a3',
    500: '#222e7c',
    950: '#000000',
  },
}
SCSS
$custom: #222e7c;
$custom-light: #6a66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#222e7c",
  "rgb": {
    "r": 34,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 232,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.13221,
    "h": 271
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#222E7C
secondary
#AFA14B
accent
#CC48E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #222E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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