#22286F#22286F

#22286F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.0% C 0.121 H 273.6°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#22286F
RGBrgb(34, 40, 111)
HSLhsl(235, 53%, 28%)
HSVhsv(235, 69%, 44%)
CMYKcmyk(69.4%, 64%, 0%, 56.5%)
CIE-LABlab(20.06, 22.53, -42.00)
CIE-LCHlch(20.06, 47.66, 298.21°)
OKLaboklab(31.99% 0.0077 -0.121)
OKLCHoklch(31.99% 0.121 273.6)
XYZxyz(4.2868, 3.0050, 15.3900)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22286F #6F6922
analogous
#224E6F #22286F #42226F
triadic
#22286F #6F2228 #286F22
tetradic
#22286F #6F224E #6F6922 #226F42
square
#22286F #6F224E #6F6922 #226F42
split-complementary
#22286F #6F4222 #4E6F22
monochromatic
#070817 #141740 #22286F #30399E #454FC6

Accessibility & contrast

On white

13.12
#22286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#22286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22286F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22286F#FFFFFF#000000##FFFFFF
##22286F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22286f;
/* rgb */ color: rgb(34, 40, 111);
/* oklch */ color: oklch(32.0% 0.121 273.6);
Tailwind
colors: {
  custom: {
    50: '#686299',
    500: '#22286f',
    950: '#000000',
  },
}
SCSS
$custom: #22286f;
$custom-light: #686299;
$custom-dark: #000000;
JSON
{
  "hex": "#22286f",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 235.325,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3199,
    "c": 0.12128,
    "h": 273.6
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#22286F
secondary
#A29C4A
accent
#D14BDD
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #22286F

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

Preview Lab → · Contrast checker → · Palette generator →

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