#2158C2#2158C2

#2158C2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.176 H 261.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#2158C2
RGBrgb(33, 88, 194)
HSLhsl(220, 71%, 45%)
HSVhsv(220, 83%, 76%)
CMYKcmyk(83%, 54.6%, 0%, 23.9%)
CIE-LABlab(39.91, 22.13, -60.40)
CIE-LCHlch(39.91, 64.32, 290.13°)
OKLaboklab(48.96% -0.0252 -0.1743)
OKLCHoklch(48.96% 0.176 261.8)
XYZxyz(13.8510, 11.1961, 52.4595)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158C2 #C28B21
analogous
#21A9C2 #2158C2 #3B21C2
triadic
#2158C2 #C22158 #58C221
tetradic
#2158C2 #C221A9 #C28B21 #21C23B
square
#2158C2 #C221A9 #C28B21 #21C23B
split-complementary
#2158C2 #C23B21 #A9C221
monochromatic
#0F2959 #18408E #2158C2 #4177DF #769DE8

Accessibility & contrast

On white

6.48
#2158C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2158C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158C2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158C2#FFFFFF#000000##FFFFFF
##2158C21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2158c2;
/* rgb */ color: rgb(33, 88, 194);
/* oklch */ color: oklch(49.0% 0.176 261.8);
Tailwind
colors: {
  custom: {
    50: '#7986d5',
    500: '#2158c2',
    950: '#000000',
  },
}
SCSS
$custom: #2158c2;
$custom-light: #7986d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2158c2",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 194
  },
  "hsl": {
    "h": 219.503,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48963,
    "c": 0.17616,
    "h": 261.8
  },
  "luminance": 0.11198
}

Semantic roles & 50–950 ramp

primary
#2158C2
secondary
#CFAE70
accent
#B03AEE
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2158C2

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

Preview Lab → · Contrast checker → · Palette generator →

#2158C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva