#22378C#22378C

#22378C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.143 H 268.1°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#22378C
RGBrgb(34, 55, 140)
HSLhsl(228, 61%, 34%)
HSVhsv(228, 76%, 55%)
CMYKcmyk(75.7%, 60.7%, 0%, 45.1%)
CIE-LABlab(26.64, 23.37, -49.62)
CIE-LCHlch(26.64, 54.85, 295.21°)
OKLaboklab(37.65% -0.0048 -0.1432)
OKLCHoklch(37.65% 0.143 268.1)
XYZxyz(6.7579, 4.9652, 25.4081)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22378C #8C7722
analogous
#226C8C #22378C #42228C
triadic
#22378C #8C2237 #378C22
tetradic
#22378C #8C226C #8C7722 #228C42
square
#22378C #8C226C #8C7722 #228C42
split-complementary
#22378C #8C4222 #6C8C22
monochromatic
#0A102A #16245B #22378C #2E4ABD #536DD5

Accessibility & contrast

On white

10.54
#22378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#22378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22378C
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22378C#FFFFFF#000000##FFFFFF
##22378C1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #22378c;
/* rgb */ color: rgb(34, 55, 140);
/* oklch */ color: oklch(37.6% 0.143 268.1);
Tailwind
colors: {
  custom: {
    50: '#6e6dae',
    500: '#22378c',
    950: '#000000',
  },
}
SCSS
$custom: #22378c;
$custom-light: #6e6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#22378c",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 228.113,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37645,
    "c": 0.14332,
    "h": 268.1
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#22378C
secondary
#B9A451
accent
#C444E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #22378C

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

Preview Lab → · Contrast checker → · Palette generator →

#22378C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva