#2158AF#2158AF

#2158AF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.151 H 259.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2158AF
RGBrgb(33, 88, 175)
HSLhsl(217, 68%, 41%)
HSVhsv(217, 81%, 69%)
CMYKcmyk(81.1%, 49.7%, 0%, 31.4%)
CIE-LABlab(38.54, 14.69, -51.47)
CIE-LCHlch(38.54, 53.52, 285.93°)
OKLaboklab(47.49% -0.0274 -0.1481)
OKLCHoklch(47.49% 0.151 259.5)
XYZxyz(11.8520, 10.3965, 41.9312)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158AF #AF7821
analogous
#219FAF #2158AF #3121AF
triadic
#2158AF #AF2158 #58AF21
tetradic
#2158AF #AF219F #AF7821 #21AF31
square
#2158AF #AF219F #AF7821 #21AF31
split-complementary
#2158AF #AF3121 #9FAF21
monochromatic
#0E2448 #173E7C #2158AF #3474D9 #6897E3

Accessibility & contrast

On white

6.82
#2158AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2158AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158AF
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158AF#FFFFFF#000000##FFFFFF
##2158AF1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2158af;
/* rgb */ color: rgb(33, 88, 175);
/* oklch */ color: oklch(47.5% 0.151 259.5);
Tailwind
colors: {
  custom: {
    50: '#7486c7',
    500: '#2158af',
    950: '#000000',
  },
}
SCSS
$custom: #2158af;
$custom-light: #7486c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2158af",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 175
  },
  "hsl": {
    "h": 216.761,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47491,
    "c": 0.1506,
    "h": 259.5
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#2158AF
secondary
#C8A164
accent
#A83DEB
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2158AF

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

Preview Lab → · Contrast checker → · Palette generator →

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