#2227A5#2227A5

#2227A5 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.195 H 270.5°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2227A5
RGBrgb(34, 39, 165)
HSLhsl(238, 66%, 39%)
HSVhsv(238, 79%, 65%)
CMYKcmyk(79.4%, 76.4%, 0%, 35.3%)
CIE-LABlab(25.28, 42.77, -67.16)
CIE-LCHlch(25.28, 79.62, 302.49°)
OKLaboklab(37.4% 0.0018 -0.1945)
OKLCHoklch(37.4% 0.195 270.5)
XYZxyz(8.1744, 4.5068, 36.0291)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227A5 #A5A022
analogous
#2269A5 #2227A5 #5F22A5
triadic
#2227A5 #A52227 #27A522
tetradic
#2227A5 #A52269 #A5A022 #22A55F
square
#2227A5 #A52269 #A5A022 #22A55F
split-complementary
#2227A5 #A55F22 #69A522
monochromatic
#0D0F40 #181B72 #2227A5 #3036D4 #6367DF

Accessibility & contrast

On white

11.04
#2227A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2227A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227A5
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227A5#FFFFFF#000000##FFFFFF
##2227A51.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2227a5;
/* rgb */ color: rgb(34, 39, 165);
/* oklch */ color: oklch(37.4% 0.195 270.5);
Tailwind
colors: {
  custom: {
    50: '#7563c1',
    500: '#2227a5',
    950: '#000000',
  },
}
SCSS
$custom: #2227a5;
$custom-light: #7563c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2227a5",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 237.71,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37399,
    "c": 0.19451,
    "h": 270.5
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#2227A5
secondary
#C4C05F
accent
#E23FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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