#2227A1#2227A1

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

Color values

HEX#2227A1
RGBrgb(34, 39, 161)
HSLhsl(238, 65%, 38%)
HSVhsv(238, 79%, 63%)
CMYKcmyk(78.9%, 75.8%, 0%, 36.9%)
CIE-LABlab(24.84, 41.40, -65.46)
CIE-LCHlch(24.84, 77.46, 302.31°)
OKLaboklab(36.96% 0.0025 -0.1896)
OKLCHoklch(36.96% 0.19 270.7)
XYZxyz(7.8160, 4.3635, 34.1416)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227A1 #A19C22
analogous
#2266A1 #2227A1 #5C22A1
triadic
#2227A1 #A12227 #27A122
tetradic
#2227A1 #A12266 #A19C22 #22A15C
square
#2227A1 #A12266 #A19C22 #22A15C
split-complementary
#2227A1 #A15C22 #66A122
monochromatic
#0D0F3C #171B6E #2227A1 #2D34D3 #6065DD

Accessibility & contrast

On white

11.21
#2227A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2227A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227A1
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227A1#FFFFFF#000000##FFFFFF
##2227A11.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2227a1;
/* rgb */ color: rgb(34, 39, 161);
/* oklch */ color: oklch(37.0% 0.190 270.7);
Tailwind
colors: {
  custom: {
    50: '#7463be',
    500: '#2227a1',
    950: '#000000',
  },
}
SCSS
$custom: #2227a1;
$custom-light: #7463be;
$custom-dark: #000000;
JSON
{
  "hex": "#2227a1",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 237.638,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36955,
    "c": 0.18959,
    "h": 270.7
  },
  "luminance": 0.04364
}

Semantic roles & 50–950 ramp

primary
#2227A1
secondary
#C2BE5D
accent
#E140E8
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2227A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2227A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva