#22276E#22276E

#22276E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.121 H 274.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#22276E
RGBrgb(34, 39, 110)
HSLhsl(236, 53%, 28%)
HSVhsv(236, 69%, 43%)
CMYKcmyk(69.1%, 64.5%, 0%, 56.9%)
CIE-LABlab(19.71, 22.84, -41.94)
CIE-LCHlch(19.71, 47.76, 298.58°)
OKLaboklab(31.7% 0.0086 -0.1209)
OKLCHoklch(31.7% 0.121 274.1)
XYZxyz(4.1987, 2.9165, 15.0905)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22276E #6E6922
analogous
#224D6E #22276E #43226E
triadic
#22276E #6E2227 #276E22
tetradic
#22276E #6E224D #6E6922 #226E43
square
#22276E #6E224D #6E6922 #226E43
split-complementary
#22276E #6E4322 #4D6E22
monochromatic
#070817 #14163F #22276E #30389D #454DC5

Accessibility & contrast

On white

13.26
#22276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22276E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22276E#FFFFFF#000000##FFFFFF
##22276E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22276e;
/* rgb */ color: rgb(34, 39, 110);
/* oklch */ color: oklch(31.7% 0.121 274.1);
Tailwind
colors: {
  custom: {
    50: '#686198',
    500: '#22276e',
    950: '#000000',
  },
}
SCSS
$custom: #22276e;
$custom-light: #686198;
$custom-dark: #000000;
JSON
{
  "hex": "#22276e",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 236.053,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.12117,
    "h": 274.1
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#22276E
secondary
#A19C4A
accent
#D34CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #22276E

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

Preview Lab → · Contrast checker → · Palette generator →

#22276E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva