#22285A#22285A

#22285A is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.089 H 274.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#22285A
RGBrgb(34, 40, 90)
HSLhsl(234, 45%, 24%)
HSVhsv(234, 62%, 35%)
CMYKcmyk(62.2%, 55.6%, 0%, 64.7%)
CIE-LABlab(18.35, 14.47, -31.02)
CIE-LCHlch(18.35, 34.23, 295.00°)
OKLaboklab(30.17% 0.0072 -0.0887)
OKLCHoklch(30.17% 0.089 274.6)
XYZxyz(3.2633, 2.5956, 9.9999)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22285A #5A5422
analogous
#22445A #22285A #38225A
triadic
#22285A #5A2228 #285A22
tetradic
#22285A #5A2244 #5A5422 #225A38
square
#22285A #5A2244 #5A5422 #225A38
split-complementary
#22285A #5A3822 #445A22
monochromatic
#080A16 #11142E #22285A #333C86 #444FB3

Accessibility & contrast

On white

13.82
#22285A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#22285A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22285A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22285A#FFFFFF#000000##FFFFFF
##22285A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#032A59
Tritanopia (blue-blind)
#01333C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22285a;
/* rgb */ color: rgb(34, 40, 90);
/* oklch */ color: oklch(30.2% 0.089 274.6);
Tailwind
colors: {
  custom: {
    50: '#636189',
    500: '#22285a',
    950: '#000000',
  },
}
SCSS
$custom: #22285a;
$custom-light: #636189;
$custom-dark: #000000;
JSON
{
  "hex": "#22285a",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 90
  },
  "hsl": {
    "h": 233.571,
    "s": 45.161,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30166,
    "c": 0.08903,
    "h": 274.6
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#22285A
secondary
#8E874A
accent
#C753D5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050B
muted
#7A797C

Preview Lab

Preview with #22285A

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

Preview Lab → · Contrast checker → · Palette generator →

#22285A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva