#2158B2#2158B2

#2158B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.155 H 259.9°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#2158B2
RGBrgb(33, 88, 178)
HSLhsl(217, 69%, 41%)
HSVhsv(217, 81%, 70%)
CMYKcmyk(81.5%, 50.6%, 0%, 30.2%)
CIE-LABlab(38.75, 15.87, -52.90)
CIE-LCHlch(38.75, 55.23, 286.70°)
OKLaboklab(47.72% -0.027 -0.1523)
OKLCHoklch(47.72% 0.155 259.9)
XYZxyz(12.1499, 10.5157, 43.5002)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2158B2 #B27B21
analogous
#21A1B2 #2158B2 #3221B2
triadic
#2158B2 #B22158 #58B221
tetradic
#2158B2 #B221A1 #B27B21 #21B232
square
#2158B2 #B221A1 #B27B21 #21B232
split-complementary
#2158B2 #B23221 #A1B221
monochromatic
#0E254B #173E7E #2158B2 #3674DA #6A98E3

Accessibility & contrast

On white

6.77
#2158B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2158B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2158B2
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2158B2#FFFFFF#000000##FFFFFF
##2158B21.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2158b2;
/* rgb */ color: rgb(33, 88, 178);
/* oklch */ color: oklch(47.7% 0.155 259.9);
Tailwind
colors: {
  custom: {
    50: '#7586ca',
    500: '#2158b2',
    950: '#000000',
  },
}
SCSS
$custom: #2158b2;
$custom-light: #7586ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2158b2",
  "rgb": {
    "r": 33,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 217.241,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47716,
    "c": 0.15468,
    "h": 259.9
  },
  "luminance": 0.10517
}

Semantic roles & 50–950 ramp

primary
#2158B2
secondary
#C9A366
accent
#A93CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2158B2

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

Preview Lab → · Contrast checker → · Palette generator →

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