#2227A8#2227A8

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

Color values

HEX#2227A8
RGBrgb(34, 39, 168)
HSLhsl(238, 66%, 40%)
HSVhsv(238, 80%, 66%)
CMYKcmyk(79.8%, 76.8%, 0%, 34.1%)
CIE-LABlab(25.62, 43.79, -68.42)
CIE-LCHlch(25.62, 81.23, 302.62°)
OKLaboklab(37.73% 0.0013 -0.1982)
OKLCHoklch(37.73% 0.198 270.4)
XYZxyz(8.4507, 4.6173, 37.4840)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227A8 #A8A322
analogous
#226AA8 #2227A8 #6022A8
triadic
#2227A8 #A82227 #27A822
tetradic
#2227A8 #A8226A #A8A322 #22A860
square
#2227A8 #A8226A #A8A322 #22A860
split-complementary
#2227A8 #A86022 #6AA822
monochromatic
#0D0F42 #181B75 #2227A8 #3238D5 #6569E0

Accessibility & contrast

On white

10.92
#2227A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2227A8
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227A8#FFFFFF#000000##FFFFFF
##2227A81.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2227a8;
/* rgb */ color: rgb(34, 39, 168);
/* oklch */ color: oklch(37.7% 0.198 270.4);
Tailwind
colors: {
  custom: {
    50: '#7663c3',
    500: '#2227a8',
    950: '#000000',
  },
}
SCSS
$custom: #2227a8;
$custom-light: #7663c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2227a8",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 237.761,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37734,
    "c": 0.19816,
    "h": 270.4
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2227A8

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

Preview Lab → · Contrast checker → · Palette generator →

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