#228BB2#228BB2

#228BB2 is a mid, moderate cyan. Relative luminance 0.220; OKLCH L 59.7% C 0.107 H 228.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#228BB2
RGBrgb(34, 139, 178)
HSLhsl(196, 68%, 42%)
HSVhsv(196, 81%, 70%)
CMYKcmyk(80.9%, 21.9%, 0%, 30.2%)
CIE-LABlab(54.05, -15.19, -28.66)
CIE-LCHlch(54.05, 32.44, 242.08°)
OKLaboklab(59.73% -0.0711 -0.0806)
OKLCHoklch(59.73% 0.107 228.6)
XYZxyz(17.9249, 22.0174, 45.4159)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228BB2 #B24922
analogous
#22B291 #228BB2 #2243B2
triadic
#228BB2 #B2228B #8BB222
tetradic
#228BB2 #9122B2 #B24922 #43B222
square
#228BB2 #9122B2 #B24922 #43B222
split-complementary
#228BB2 #B22243 #B29122
monochromatic
#0E3B4B #18637F #228BB2 #38ADD9 #6CC3E3

Accessibility & contrast

On white

3.89
#228BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#228BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228BB2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228BB2#FFFFFF#000000##000000
##228BB21.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7789B4
Deuteranopia (green-blind)
#647BB1
Tritanopia (blue-blind)
#009698
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #228bb2;
/* rgb */ color: rgb(34, 139, 178);
/* oklch */ color: oklch(59.7% 0.107 228.6);
Tailwind
colors: {
  custom: {
    50: '#76adc9',
    500: '#228bb2',
    950: '#000000',
  },
}
SCSS
$custom: #228bb2;
$custom-light: #76adc9;
$custom-dark: #000000;
JSON
{
  "hex": "#228bb2",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 178
  },
  "hsl": {
    "h": 196.25,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.59732,
    "c": 0.10748,
    "h": 228.6
  },
  "luminance": 0.2202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #228BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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