#2228A0#2228A0

#2228A0 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.187 H 270.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2228A0
RGBrgb(34, 40, 160)
HSLhsl(237, 65%, 38%)
HSVhsv(237, 79%, 63%)
CMYKcmyk(78.8%, 75%, 0%, 37.3%)
CIE-LABlab(24.94, 40.47, -64.69)
CIE-LCHlch(24.94, 76.31, 302.03°)
OKLaboklab(36.99% 0.0022 -0.1873)
OKLCHoklch(36.99% 0.187 270.7)
XYZxyz(7.7615, 4.3949, 33.6901)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2228A0 #A09A22
analogous
#2267A0 #2228A0 #5B22A0
triadic
#2228A0 #A02228 #28A022
tetradic
#2228A0 #A02267 #A09A22 #22A05B
square
#2228A0 #A02267 #A09A22 #22A05B
split-complementary
#2228A0 #A05B22 #67A022
monochromatic
#0D0F3B #171B6E #2228A0 #2D35D2 #5F65DD

Accessibility & contrast

On white

11.17
#2228A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2228A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2228A0
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2228A0#FFFFFF#000000##FFFFFF
##2228A01.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2228a0;
/* rgb */ color: rgb(34, 40, 160);
/* oklch */ color: oklch(37.0% 0.187 270.7);
Tailwind
colors: {
  custom: {
    50: '#7463bd',
    500: '#2228a0',
    950: '#000000',
  },
}
SCSS
$custom: #2228a0;
$custom-light: #7463bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2228a0",
  "rgb": {
    "r": 34,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 237.143,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36992,
    "c": 0.18735,
    "h": 270.7
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#2228A0
secondary
#C2BD5C
accent
#E040E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2228A0

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

Preview Lab → · Contrast checker → · Palette generator →

#2228A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva