#22285F#22285F

#22285F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.097 H 274.5°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#22285F
RGBrgb(34, 40, 95)
HSLhsl(234, 47%, 25%)
HSVhsv(234, 64%, 37%)
CMYKcmyk(64.2%, 57.9%, 0%, 62.7%)
CIE-LABlab(18.73, 16.39, -33.72)
CIE-LCHlch(18.73, 37.49, 295.92°)
OKLaboklab(30.58% 0.0075 -0.0967)
OKLCHoklch(30.58% 0.097 274.5)
XYZxyz(3.4834, 2.6836, 11.1587)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22285F #5F5922
analogous
#22475F #22285F #3A225F
triadic
#22285F #5F2228 #285F22
tetradic
#22285F #5F2247 #5F5922 #225F3A
square
#22285F #5F2247 #5F5922 #225F3A
split-complementary
#22285F #5F3A22 #475F22
monochromatic
#080917 #121532 #22285F #323B8C #424EB9

Accessibility & contrast

On white

13.66
#22285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#22285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22285F
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22285F#FFFFFF#000000##FFFFFF
##22285F1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22285f;
/* rgb */ color: rgb(34, 40, 95);
/* oklch */ color: oklch(30.6% 0.097 274.5);
Tailwind
colors: {
  custom: {
    50: '#64618d',
    500: '#22285f',
    950: '#000000',
  },
}
SCSS
$custom: #22285f;
$custom-light: #64618d;
$custom-dark: #000000;
JSON
{
  "hex": "#22285f",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 234.098,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30577,
    "c": 0.09697,
    "h": 274.5
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#22285F
secondary
#938C4A
accent
#CA51D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #22285F

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

Preview Lab → · Contrast checker → · Palette generator →

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