#2128A1#2128A1

#2128A1 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.189 H 270.3°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2128A1
RGBrgb(33, 40, 161)
HSLhsl(237, 66%, 38%)
HSVhsv(237, 80%, 63%)
CMYKcmyk(79.5%, 75.2%, 0%, 36.9%)
CIE-LABlab(24.99, 40.74, -65.21)
CIE-LCHlch(24.99, 76.89, 302.00°)
OKLaboklab(37.05% 0.001 -0.1889)
OKLCHoklch(37.05% 0.189 270.3)
XYZxyz(7.8168, 4.4132, 34.1512)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2128A1 #A19A21
analogous
#2168A1 #2128A1 #5A21A1
triadic
#2128A1 #A12128 #28A121
tetradic
#2128A1 #A12168 #A19A21 #21A15A
square
#2128A1 #A12168 #A19A21 #21A15A
split-complementary
#2128A1 #A15A21 #68A121
monochromatic
#0C0F3B #171B6E #2128A1 #2C35D4 #5E65DE

Accessibility & contrast

On white

11.15
#2128A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2128A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2128A1
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2128A1#FFFFFF#000000##FFFFFF
##2128A11.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2128a1;
/* rgb */ color: rgb(33, 40, 161);
/* oklch */ color: oklch(37.0% 0.189 270.3);
Tailwind
colors: {
  custom: {
    50: '#7463be',
    500: '#2128a1',
    950: '#000000',
  },
}
SCSS
$custom: #2128a1;
$custom-light: #7463be;
$custom-dark: #000000;
JSON
{
  "hex": "#2128a1",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 236.719,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3705,
    "c": 0.18886,
    "h": 270.3
  },
  "luminance": 0.04414
}

Semantic roles & 50–950 ramp

primary
#2128A1
secondary
#C3BD5B
accent
#E03FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2128A1

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

Preview Lab → · Contrast checker → · Palette generator →

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