#2158A5#2158A5

#2158A5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.137 H 257.7°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#2158A5
RGBrgb(33, 88, 165)
HSLhsl(215, 67%, 39%)
HSVhsv(215, 80%, 65%)
CMYKcmyk(80%, 46.7%, 0%, 35.3%)
CIE-LABlab(37.87, 10.75, -46.61)
CIE-LCHlch(37.87, 47.84, 282.98°)
OKLaboklab(46.76% -0.0291 -0.1338)
OKLCHoklch(46.76% 0.137 257.7)
XYZxyz(10.9060, 10.0181, 36.9489)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158A5 #A56E21
analogous
#219AA5 #2158A5 #2C21A5
triadic
#2158A5 #A52158 #58A521
tetradic
#2158A5 #A5219A #A56E21 #21A52C
square
#2158A5 #A5219A #A56E21 #21A52C
split-complementary
#2158A5 #A52C21 #9AA521
monochromatic
#0D223F #173D72 #2158A5 #2E74D5 #6196DF

Accessibility & contrast

On white

6.99
#2158A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#2158A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158A5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158A5#FFFFFF#000000##FFFFFF
##2158A51.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A8
Deuteranopia (green-blind)
#0C54A3
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2158a5;
/* rgb */ color: rgb(33, 88, 165);
/* oklch */ color: oklch(46.8% 0.137 257.7);
Tailwind
colors: {
  custom: {
    50: '#7186c0',
    500: '#2158a5',
    950: '#000000',
  },
}
SCSS
$custom: #2158a5;
$custom-light: #7186c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2158a5",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 165
  },
  "hsl": {
    "h": 215,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46761,
    "c": 0.13693,
    "h": 257.7
  },
  "luminance": 0.10019
}

Semantic roles & 50–950 ramp

primary
#2158A5
secondary
#C4995E
accent
#A23EEA
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2158A5

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

Preview Lab → · Contrast checker → · Palette generator →

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