#222271#222271

#222271 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.132 H 275.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#222271
RGBrgb(34, 34, 113)
HSLhsl(240, 54%, 29%)
HSVhsv(240, 70%, 44%)
CMYKcmyk(69.9%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.70, 27.37, -45.53)
CIE-LCHlch(18.70, 53.13, 301.02°)
OKLaboklab(31.05% 0.0127 -0.1314)
OKLCHoklch(31.05% 0.132 275.5)
XYZxyz(4.2114, 2.6760, 15.9142)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222271 #717122
analogous
#224A71 #222271 #4A2271
triadic
#222271 #712222 #227122
tetradic
#222271 #71224A #717122 #22714A
square
#222271 #71224A #717122 #22714A
split-complementary
#222271 #714A22 #4A7122
monochromatic
#070718 #141442 #222271 #3030A0 #4646C7

Accessibility & contrast

On white

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

On black

1.54
#222271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##222271#FFFFFF#000000##FFFFFF
##2222711.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #222271;
/* rgb */ color: rgb(34, 34, 113);
/* oklch */ color: oklch(31.0% 0.132 275.5);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#222271',
    950: '#000000',
  },
}
SCSS
$custom: #222271;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222271",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.13203,
    "h": 275.5
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #222271

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

Preview Lab → · Contrast checker → · Palette generator →

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