#2128BD#2128BD

#2128BD is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.2% C 0.222 H 269.0°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2128BD
RGBrgb(33, 40, 189)
HSLhsl(237, 70%, 44%)
HSVhsv(237, 83%, 74%)
CMYKcmyk(82.5%, 78.8%, 0%, 25.9%)
CIE-LABlab(28.15, 50.12, -76.77)
CIE-LCHlch(28.15, 91.68, 303.14°)
OKLaboklab(40.2% -0.0037 -0.2224)
OKLCHoklch(40.2% 0.222 269)
XYZxyz(10.5682, 5.5138, 48.6415)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2128BD #BDB621
analogous
#2176BD #2128BD #6821BD
triadic
#2128BD #BD2128 #28BD21
tetradic
#2128BD #BD2176 #BDB621 #21BD68
square
#2128BD #BD2176 #BDB621 #21BD68
split-complementary
#2128BD #BD6821 #76BD21
monochromatic
#0F1255 #181D89 #2128BD #3E45DD #7277E6

Accessibility & contrast

On white

9.99
#2128BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2128BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2128BD
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2128BD#FFFFFF#000000##FFFFFF
##2128BD1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003ABA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2128bd;
/* rgb */ color: rgb(33, 40, 189);
/* oklch */ color: oklch(40.2% 0.222 269.0);
Tailwind
colors: {
  custom: {
    50: '#7b65d2',
    500: '#2128bd',
    950: '#000000',
  },
}
SCSS
$custom: #2128bd;
$custom-light: #7b65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2128bd",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 237.308,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40204,
    "c": 0.22241,
    "h": 269
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

primary
#2128BD
secondary
#CDC96D
accent
#E53BED
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2128BD

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

Preview Lab → · Contrast checker → · Palette generator →

#2128BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva