#2158A7#2158A7

#2158A7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.9% C 0.140 H 258.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2158A7
RGBrgb(33, 88, 167)
HSLhsl(215, 67%, 39%)
HSVhsv(215, 80%, 65%)
CMYKcmyk(80.2%, 47.3%, 0%, 34.5%)
CIE-LABlab(38.01, 11.54, -47.59)
CIE-LCHlch(38.01, 48.97, 283.62°)
OKLaboklab(46.91% -0.0287 -0.1367)
OKLCHoklch(46.91% 0.14 258.1)
XYZxyz(11.0894, 10.0915, 37.9151)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158A7 #A77021
analogous
#219BA7 #2158A7 #2D21A7
triadic
#2158A7 #A72158 #58A721
tetradic
#2158A7 #A7219B #A77021 #21A72D
square
#2158A7 #A7219B #A77021 #21A72D
split-complementary
#2158A7 #A72D21 #9BA721
monochromatic
#0D2241 #173D74 #2158A7 #2F74D6 #6296E0

Accessibility & contrast

On white

6.96
#2158A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2158A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158A7
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158A7#FFFFFF#000000##FFFFFF
##2158A71.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AA
Deuteranopia (green-blind)
#0554A5
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2158a7;
/* rgb */ color: rgb(33, 88, 167);
/* oklch */ color: oklch(46.9% 0.140 258.1);
Tailwind
colors: {
  custom: {
    50: '#7286c2',
    500: '#2158a7',
    950: '#000000',
  },
}
SCSS
$custom: #2158a7;
$custom-light: #7286c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2158a7",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 167
  },
  "hsl": {
    "h": 215.373,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46905,
    "c": 0.13967,
    "h": 258.1
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

primary
#2158A7
secondary
#C59B5F
accent
#A33EEA
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2158A7

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

Preview Lab → · Contrast checker → · Palette generator →

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