#22276F#22276F

#22276F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.123 H 274.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#22276F
RGBrgb(34, 39, 111)
HSLhsl(236, 53%, 28%)
HSVhsv(236, 69%, 44%)
CMYKcmyk(69.4%, 64.9%, 0%, 56.5%)
CIE-LABlab(19.80, 23.23, -42.44)
CIE-LCHlch(19.80, 48.38, 298.69°)
OKLaboklab(31.79% 0.0086 -0.1223)
OKLCHoklch(31.79% 0.123 274)
XYZxyz(4.2535, 2.9384, 15.3789)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22276F #6F6A22
analogous
#224D6F #22276F #43226F
triadic
#22276F #6F2227 #276F22
tetradic
#22276F #6F224D #6F6A22 #226F43
square
#22276F #6F224D #6F6A22 #226F43
split-complementary
#22276F #6F4322 #4D6F22
monochromatic
#070817 #141740 #22276F #30379E #454EC6

Accessibility & contrast

On white

13.23
#22276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22276F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22276F#FFFFFF#000000##FFFFFF
##22276F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22276f;
/* rgb */ color: rgb(34, 39, 111);
/* oklch */ color: oklch(31.8% 0.123 274.0);
Tailwind
colors: {
  custom: {
    50: '#686199',
    500: '#22276f',
    950: '#000000',
  },
}
SCSS
$custom: #22276f;
$custom-light: #686199;
$custom-dark: #000000;
JSON
{
  "hex": "#22276f",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 236.104,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31792,
    "c": 0.12264,
    "h": 274
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#22276F
secondary
#A29D4A
accent
#D34BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #22276F

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

Preview Lab → · Contrast checker → · Palette generator →

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