#2227A7#2227A7

#2227A7 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.197 H 270.4°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2227A7
RGBrgb(34, 39, 167)
HSLhsl(238, 66%, 39%)
HSVhsv(238, 80%, 65%)
CMYKcmyk(79.6%, 76.6%, 0%, 34.5%)
CIE-LABlab(25.50, 43.45, -68.00)
CIE-LCHlch(25.50, 80.70, 302.58°)
OKLaboklab(37.62% 0.0014 -0.1969)
OKLCHoklch(37.62% 0.197 270.4)
XYZxyz(8.3579, 4.5802, 36.9953)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227A7 #A7A222
analogous
#226AA7 #2227A7 #5F22A7
triadic
#2227A7 #A72227 #27A722
tetradic
#2227A7 #A7226A #A7A222 #22A75F
square
#2227A7 #A7226A #A7A222 #22A75F
split-complementary
#2227A7 #A75F22 #6AA722
monochromatic
#0D0F41 #181B74 #2227A7 #3137D5 #6469DF

Accessibility & contrast

On white

10.96
#2227A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2227A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227A7
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227A7#FFFFFF#000000##FFFFFF
##2227A71.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2227a7;
/* rgb */ color: rgb(34, 39, 167);
/* oklch */ color: oklch(37.6% 0.197 270.4);
Tailwind
colors: {
  custom: {
    50: '#7663c2',
    500: '#2227a7',
    950: '#000000',
  },
}
SCSS
$custom: #2227a7;
$custom-light: #7663c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2227a7",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 237.744,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37622,
    "c": 0.19695,
    "h": 270.4
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#2227A7
secondary
#C5C160
accent
#E33FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2227A7

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

Preview Lab → · Contrast checker → · Palette generator →

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