#2158AC#2158AC

#2158AC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.3% C 0.147 H 259.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2158AC
RGBrgb(33, 88, 172)
HSLhsl(216, 68%, 40%)
HSVhsv(216, 81%, 67%)
CMYKcmyk(80.8%, 48.8%, 0%, 32.5%)
CIE-LABlab(38.34, 13.51, -50.02)
CIE-LCHlch(38.34, 51.81, 285.11°)
OKLaboklab(47.27% -0.0279 -0.1438)
OKLCHoklch(47.27% 0.147 259)
XYZxyz(11.5606, 10.2800, 40.3967)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158AC #AC7521
analogous
#219DAC #2158AC #2F21AC
triadic
#2158AC #AC2158 #58AC21
tetradic
#2158AC #AC219D #AC7521 #21AC2F
square
#2158AC #AC219D #AC7521 #21AC2F
split-complementary
#2158AC #AC2F21 #9DAC21
monochromatic
#0D2345 #173E79 #2158AC #3274D8 #6697E2

Accessibility & contrast

On white

6.87
#2158AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2158AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158AC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158AC#FFFFFF#000000##FFFFFF
##2158AC1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2158ac;
/* rgb */ color: rgb(33, 88, 172);
/* oklch */ color: oklch(47.3% 0.147 259.0);
Tailwind
colors: {
  custom: {
    50: '#7386c5',
    500: '#2158ac',
    950: '#000000',
  },
}
SCSS
$custom: #2158ac;
$custom-light: #7386c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2158ac",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 172
  },
  "hsl": {
    "h": 216.259,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47269,
    "c": 0.14651,
    "h": 259
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#2158AC
secondary
#C79F62
accent
#A63DEB
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #2158AC

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

Preview Lab → · Contrast checker → · Palette generator →

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