#2128BA#2128BA

#2128BA is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.219 H 269.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2128BA
RGBrgb(33, 40, 186)
HSLhsl(237, 70%, 43%)
HSVhsv(237, 82%, 73%)
CMYKcmyk(82.3%, 78.5%, 0%, 27.1%)
CIE-LABlab(27.80, 49.15, -75.57)
CIE-LCHlch(27.80, 90.14, 303.04°)
OKLaboklab(39.86% -0.0032 -0.2189)
OKLCHoklch(39.86% 0.219 269.2)
XYZxyz(10.2459, 5.3849, 46.9442)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2128BA #BAB321
analogous
#2174BA #2128BA #6621BA
triadic
#2128BA #BA2128 #28BA21
tetradic
#2128BA #BA2174 #BAB321 #21BA66
square
#2128BA #BA2174 #BAB321 #21BA66
split-complementary
#2128BA #BA6621 #74BA21
monochromatic
#0F1252 #181D86 #2128BA #3C43DC #7075E6

Accessibility & contrast

On white

10.11
#2128BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2128BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2128BA
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2128BA#FFFFFF#000000##FFFFFF
##2128BA1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BE
Deuteranopia (green-blind)
#003AB8
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2128ba;
/* rgb */ color: rgb(33, 40, 186);
/* oklch */ color: oklch(39.9% 0.219 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b65d0',
    500: '#2128ba',
    950: '#000000',
  },
}
SCSS
$custom: #2128ba;
$custom-light: #7b65d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2128ba",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 237.255,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.3986,
    "c": 0.21893,
    "h": 269.2
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#2128BA
secondary
#CCC86B
accent
#E53BED
background
#F8F6FD
surface
#EFEBFA
border
#CAC6D3
text
#0B0614
muted
#7C7A83

Preview Lab

Preview with #2128BA

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

Preview Lab → · Contrast checker → · Palette generator →

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