#228CB2#228CB2

#228CB2 is a mid, moderate cyan. Relative luminance 0.223; OKLCH L 60.0% C 0.107 H 227.7°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#228CB2
RGBrgb(34, 140, 178)
HSLhsl(196, 68%, 42%)
HSVhsv(196, 81%, 70%)
CMYKcmyk(80.9%, 21.3%, 0%, 30.2%)
CIE-LABlab(54.35, -15.74, -28.19)
CIE-LCHlch(54.35, 32.28, 240.82°)
OKLaboklab(59.98% -0.072 -0.0792)
OKLCHoklch(59.98% 0.107 227.7)
XYZxyz(18.0703, 22.3084, 45.4644)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228CB2 #B24822
analogous
#22B290 #228CB2 #2244B2
triadic
#228CB2 #B2228C #8CB222
tetradic
#228CB2 #9022B2 #B24822 #44B222
square
#228CB2 #9022B2 #B24822 #44B222
split-complementary
#228CB2 #B22244 #B29022
monochromatic
#0E3B4B #18647F #228CB2 #38AFD9 #6CC3E3

Accessibility & contrast

On white

3.84
#228CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#228CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228CB2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228CB2#FFFFFF#000000##000000
##228CB21.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#788AB4
Deuteranopia (green-blind)
#657CB1
Tritanopia (blue-blind)
#009799
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #228cb2;
/* rgb */ color: rgb(34, 140, 178);
/* oklch */ color: oklch(60.0% 0.107 227.7);
Tailwind
colors: {
  custom: {
    50: '#76adc9',
    500: '#228cb2',
    950: '#000000',
  },
}
SCSS
$custom: #228cb2;
$custom-light: #76adc9;
$custom-dark: #000000;
JSON
{
  "hex": "#228cb2",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 178
  },
  "hsl": {
    "h": 195.833,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.59978,
    "c": 0.10709,
    "h": 227.7
  },
  "luminance": 0.22311
}

Semantic roles & 50–950 ramp

primary
#228CB2
secondary
#C98167
accent
#6B3DEB
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #228CB2

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

Preview Lab → · Contrast checker → · Palette generator →

#228CB2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva