#222270#222270

#222270 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.131 H 275.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#222270
RGBrgb(34, 34, 112)
HSLhsl(240, 53%, 29%)
HSVhsv(240, 70%, 44%)
CMYKcmyk(69.6%, 69.6%, 0%, 56.1%)
CIE-LABlab(18.60, 27.01, -45.04)
CIE-LCHlch(18.60, 52.52, 300.95°)
OKLaboklab(30.95% 0.0128 -0.13)
OKLCHoklch(30.95% 0.131 275.6)
XYZxyz(4.1554, 2.6536, 15.6193)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222270 #707022
analogous
#224970 #222270 #492270
triadic
#222270 #702222 #227022
tetradic
#222270 #702249 #707022 #227049
square
#222270 #702249 #707022 #227049
split-complementary
#222270 #704922 #497022
monochromatic
#070717 #141441 #222270 #30309F #4646C7

Accessibility & contrast

On white

13.72
#222270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #222270
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222270#FFFFFF#000000##FFFFFF
##2222701.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #222270;
/* rgb */ color: rgb(34, 34, 112);
/* oklch */ color: oklch(30.9% 0.131 275.6);
Tailwind
colors: {
  custom: {
    50: '#695d9a',
    500: '#222270',
    950: '#000000',
  },
}
SCSS
$custom: #222270;
$custom-light: #695d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#222270",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30946,
    "c": 0.13062,
    "h": 275.6
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#222270
secondary
#A3A34A
accent
#DD4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222270

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

Preview Lab → · Contrast checker → · Palette generator →

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