#227ED4#227ED4

#227ED4 is a mid, vivid cyan. Relative luminance 0.200; OKLCH L 58.5% C 0.155 H 251.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#227ED4
RGBrgb(34, 126, 212)
HSLhsl(209, 72%, 48%)
HSVhsv(209, 84%, 83%)
CMYKcmyk(84%, 40.6%, 0%, 16.9%)
CIE-LABlab(51.85, 4.93, -51.49)
CIE-LCHlch(51.85, 51.72, 275.47°)
OKLaboklab(58.55% -0.0494 -0.1474)
OKLCHoklch(58.55% 0.155 251.5)
XYZxyz(19.9997, 20.0127, 65.0833)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227ED4 #D47822
analogous
#22D4D1 #227ED4 #2225D4
triadic
#227ED4 #D4227E #7ED422
tetradic
#227ED4 #D122D4 #D47822 #25D422
square
#227ED4 #D122D4 #D47822 #25D422
split-complementary
#227ED4 #D42225 #D4D122
monochromatic
#113F6B #1A5F9F #227ED4 #509CE3 #85BAEB

Accessibility & contrast

On white

4.20
#227ED4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#227ED4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #227ED4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227ED4#FFFFFF#000000##000000
##227ED41.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5384D7
Deuteranopia (green-blind)
#3574D2
Tritanopia (blue-blind)
#00939F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #227ed4;
/* rgb */ color: rgb(34, 126, 212);
/* oklch */ color: oklch(58.5% 0.155 251.5);
Tailwind
colors: {
  custom: {
    50: '#7ca2e2',
    500: '#227ed4',
    950: '#000000',
  },
}
SCSS
$custom: #227ed4;
$custom-light: #7ca2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#227ed4",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 212
  },
  "hsl": {
    "h": 208.989,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.58548,
    "c": 0.15542,
    "h": 251.5
  },
  "luminance": 0.20015
}

Semantic roles & 50–950 ramp

primary
#227ED4
secondary
#D5A77D
accent
#9139EF
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0F15
muted
#7C7E83

Preview Lab

Preview with #227ED4

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

Preview Lab → · Contrast checker → · Palette generator →

#227ED4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva