#22297F#22297F

#22297F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.143 H 272.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#22297F
RGBrgb(34, 41, 127)
HSLhsl(235, 58%, 32%)
HSVhsv(235, 73%, 50%)
CMYKcmyk(73.2%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.79, 27.91, -49.40)
CIE-LCHlch(21.79, 56.75, 299.47°)
OKLaboklab(33.71% 0.0059 -0.1427)
OKLCHoklch(33.71% 0.143 272.4)
XYZxyz(5.2821, 3.4577, 20.4636)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22297F #7F7822
analogous
#22587F #22297F #4A227F
triadic
#22297F #7F2229 #297F22
tetradic
#22297F #7F2258 #7F7822 #227F4A
square
#22297F #7F2258 #7F7822 #227F4A
split-complementary
#22297F #7F4A22 #587F22
monochromatic
#080A1E #15194F #22297F #2F39AF #4C56CF

Accessibility & contrast

On white

12.41
#22297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#22297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22297F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22297F#FFFFFF#000000##FFFFFF
##22297F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #22297f;
/* rgb */ color: rgb(34, 41, 127);
/* oklch */ color: oklch(33.7% 0.143 272.4);
Tailwind
colors: {
  custom: {
    50: '#6c63a5',
    500: '#22297f',
    950: '#000000',
  },
}
SCSS
$custom: #22297f;
$custom-light: #6c63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22297f",
  "rgb": {
    "r": 34,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 235.484,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33711,
    "c": 0.14286,
    "h": 272.4
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#22297F
secondary
#B2AA4B
accent
#D547E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22297F

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

Preview Lab → · Contrast checker → · Palette generator →

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