#2158A6#2158A6

#2158A6 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.8% C 0.138 H 257.9°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#2158A6
RGBrgb(33, 88, 166)
HSLhsl(215, 67%, 39%)
HSVhsv(215, 80%, 65%)
CMYKcmyk(80.1%, 47%, 0%, 34.9%)
CIE-LABlab(37.94, 11.14, -47.10)
CIE-LCHlch(37.94, 48.40, 283.31°)
OKLaboklab(46.83% -0.0289 -0.1352)
OKLCHoklch(46.83% 0.138 257.9)
XYZxyz(10.9973, 10.0546, 37.4301)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158A6 #A66F21
analogous
#219BA6 #2158A6 #2D21A6
triadic
#2158A6 #A62158 #58A621
tetradic
#2158A6 #A6219B #A66F21 #21A62D
square
#2158A6 #A6219B #A66F21 #21A62D
split-complementary
#2158A6 #A62D21 #9BA621
monochromatic
#0D2240 #173D73 #2158A6 #2F74D6 #6296E0

Accessibility & contrast

On white

6.97
#2158A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2158A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158A6
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158A6#FFFFFF#000000##FFFFFF
##2158A61.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A9
Deuteranopia (green-blind)
#0954A4
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2158a6;
/* rgb */ color: rgb(33, 88, 166);
/* oklch */ color: oklch(46.8% 0.138 257.9);
Tailwind
colors: {
  custom: {
    50: '#7286c1',
    500: '#2158a6',
    950: '#000000',
  },
}
SCSS
$custom: #2158a6;
$custom-light: #7286c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2158a6",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 166
  },
  "hsl": {
    "h": 215.188,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46833,
    "c": 0.1383,
    "h": 257.9
  },
  "luminance": 0.10056
}

Semantic roles & 50–950 ramp

primary
#2158A6
secondary
#C59A5E
accent
#A33EEA
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2158A6

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

Preview Lab → · Contrast checker → · Palette generator →

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