#222762#222762

#222762 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.103 H 274.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#222762
RGBrgb(34, 39, 98)
HSLhsl(235, 48%, 26%)
HSVhsv(235, 65%, 38%)
CMYKcmyk(65.3%, 60.2%, 0%, 61.6%)
CIE-LABlab(18.68, 18.25, -35.77)
CIE-LCHlch(18.68, 40.16, 297.03°)
OKLaboklab(30.62% 0.0088 -0.1027)
OKLCHoklch(30.62% 0.103 274.9)
XYZxyz(3.5891, 2.6727, 11.8796)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222762 #625D22
analogous
#224762 #222762 #3D2262
triadic
#222762 #622227 #276222
tetradic
#222762 #622247 #625D22 #22623D
square
#222762 #622247 #625D22 #22623D
split-complementary
#222762 #623D22 #476222
monochromatic
#080917 #121535 #222762 #32398F #424BBD

Accessibility & contrast

On white

13.68
#222762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#222762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222762
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222762#FFFFFF#000000##FFFFFF
##2227621.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#003540
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #222762;
/* rgb */ color: rgb(34, 39, 98);
/* oklch */ color: oklch(30.6% 0.103 274.9);
Tailwind
colors: {
  custom: {
    50: '#65618f',
    500: '#222762',
    950: '#000000',
  },
}
SCSS
$custom: #222762;
$custom-light: #65618f;
$custom-dark: #000000;
JSON
{
  "hex": "#222762",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 98
  },
  "hsl": {
    "h": 235.313,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30618,
    "c": 0.10311,
    "h": 274.9
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#222762
secondary
#96904A
accent
#CD50D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #222762

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

Preview Lab → · Contrast checker → · Palette generator →

#222762 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva