#2158A8#2158A8

#2158A8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.141 H 258.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#2158A8
RGBrgb(33, 88, 168)
HSLhsl(216, 67%, 39%)
HSVhsv(216, 80%, 66%)
CMYKcmyk(80.4%, 47.6%, 0%, 34.1%)
CIE-LABlab(38.07, 11.93, -48.08)
CIE-LCHlch(38.07, 49.54, 283.94°)
OKLaboklab(46.98% -0.0286 -0.1381)
OKLCHoklch(46.98% 0.141 258.3)
XYZxyz(11.1822, 10.1286, 38.4039)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158A8 #A87121
analogous
#219BA8 #2158A8 #2E21A8
triadic
#2158A8 #A82158 #58A821
tetradic
#2158A8 #A8219B #A87121 #21A82E
square
#2158A8 #A8219B #A87121 #21A82E
split-complementary
#2158A8 #A82E21 #9BA821
monochromatic
#0D2242 #173D75 #2158A8 #3074D6 #6396E0

Accessibility & contrast

On white

6.94
#2158A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2158A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158A8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158A8#FFFFFF#000000##FFFFFF
##2158A81.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AB
Deuteranopia (green-blind)
#0154A6
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2158a8;
/* rgb */ color: rgb(33, 88, 168);
/* oklch */ color: oklch(47.0% 0.141 258.3);
Tailwind
colors: {
  custom: {
    50: '#7286c2',
    500: '#2158a8',
    950: '#000000',
  },
}
SCSS
$custom: #2158a8;
$custom-light: #7286c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2158a8",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 168
  },
  "hsl": {
    "h": 215.556,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46977,
    "c": 0.14104,
    "h": 258.3
  },
  "luminance": 0.1013
}

Semantic roles & 50–950 ramp

primary
#2158A8
secondary
#C59C5F
accent
#A43EEA
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2158A8

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

Preview Lab → · Contrast checker → · Palette generator →

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