#2128A4#2128A4

#2128A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.193 H 270.2°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2128A4
RGBrgb(33, 40, 164)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 80%, 64%)
CMYKcmyk(79.9%, 75.6%, 0%, 35.7%)
CIE-LABlab(25.32, 41.78, -66.49)
CIE-LCHlch(25.32, 78.52, 302.14°)
OKLaboklab(37.38% 0.0005 -0.1926)
OKLCHoklch(37.38% 0.193 270.2)
XYZxyz(8.0845, 4.5203, 35.5612)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2128A4 #A49D21
analogous
#2169A4 #2128A4 #5B21A4
triadic
#2128A4 #A42128 #28A421
tetradic
#2128A4 #A42169 #A49D21 #21A45B
square
#2128A4 #A42169 #A49D21 #21A45B
split-complementary
#2128A4 #A45B21 #69A421
monochromatic
#0C0F3E #171C71 #2128A4 #2D36D5 #6067DF

Accessibility & contrast

On white

11.03
#2128A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2128A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2128A4
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2128A4#FFFFFF#000000##FFFFFF
##2128A41.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2128a4;
/* rgb */ color: rgb(33, 40, 164);
/* oklch */ color: oklch(37.4% 0.193 270.2);
Tailwind
colors: {
  custom: {
    50: '#7563c0',
    500: '#2128a4',
    950: '#000000',
  },
}
SCSS
$custom: #2128a4;
$custom-light: #7563c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2128a4",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 236.794,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37381,
    "c": 0.19258,
    "h": 270.2
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#2128A4
secondary
#C4BE5D
accent
#E03EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2128A4

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

Preview Lab → · Contrast checker → · Palette generator →

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