#2158B4#2158B4

#2158B4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.157 H 260.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2158B4
RGBrgb(33, 88, 180)
HSLhsl(218, 69%, 42%)
HSVhsv(218, 82%, 71%)
CMYKcmyk(81.7%, 51.1%, 0%, 29.4%)
CIE-LABlab(38.89, 16.66, -53.85)
CIE-LCHlch(38.89, 56.37, 287.19°)
OKLaboklab(47.87% -0.0268 -0.1551)
OKLCHoklch(47.87% 0.157 260.2)
XYZxyz(12.3521, 10.5966, 44.5655)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158B4 #B47D21
analogous
#21A2B4 #2158B4 #3421B4
triadic
#2158B4 #B42158 #58B421
tetradic
#2158B4 #B421A2 #B47D21 #21B434
square
#2158B4 #B421A2 #B47D21 #21B434
split-complementary
#2158B4 #B43421 #A2B421
monochromatic
#0E254D #183F80 #2158B4 #3875DA #6B99E4

Accessibility & contrast

On white

6.73
#2158B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2158B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158B4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158B4#FFFFFF#000000##FFFFFF
##2158B41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B7
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2158b4;
/* rgb */ color: rgb(33, 88, 180);
/* oklch */ color: oklch(47.9% 0.157 260.2);
Tailwind
colors: {
  custom: {
    50: '#7586cb',
    500: '#2158b4',
    950: '#000000',
  },
}
SCSS
$custom: #2158b4;
$custom-light: #7586cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2158b4",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 180
  },
  "hsl": {
    "h": 217.551,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47868,
    "c": 0.15739,
    "h": 260.2
  },
  "luminance": 0.10598
}

Semantic roles & 50–950 ramp

primary
#2158B4
secondary
#CAA567
accent
#AA3CEC
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2158B4

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

Preview Lab → · Contrast checker → · Palette generator →

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