#2227A6#2227A6

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

Color values

HEX#2227A6
RGBrgb(34, 39, 166)
HSLhsl(238, 66%, 39%)
HSVhsv(238, 80%, 65%)
CMYKcmyk(79.5%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.39, 43.11, -67.58)
CIE-LCHlch(25.39, 80.16, 302.53°)
OKLaboklab(37.51% 0.0016 -0.1957)
OKLCHoklch(37.51% 0.196 270.5)
XYZxyz(8.2658, 4.5434, 36.5103)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2227A6 #A6A122
analogous
#2269A6 #2227A6 #5F22A6
triadic
#2227A6 #A62227 #27A622
tetradic
#2227A6 #A62269 #A6A122 #22A65F
square
#2227A6 #A62269 #A6A122 #22A65F
split-complementary
#2227A6 #A65F22 #69A622
monochromatic
#0D0F40 #181B73 #2227A6 #3037D5 #6368DF

Accessibility & contrast

On white

11.00
#2227A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2227A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2227A6
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2227A6#FFFFFF#000000##FFFFFF
##2227A61.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2227a6;
/* rgb */ color: rgb(34, 39, 166);
/* oklch */ color: oklch(37.5% 0.196 270.5);
Tailwind
colors: {
  custom: {
    50: '#7663c2',
    500: '#2227a6',
    950: '#000000',
  },
}
SCSS
$custom: #2227a6;
$custom-light: #7663c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2227a6",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 237.727,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.19573,
    "h": 270.5
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#2227A6
secondary
#C4C05F
accent
#E23FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2227A6

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

Preview Lab → · Contrast checker → · Palette generator →

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