#2128A0#2128A0

#2128A0 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.188 H 270.4°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2128A0
RGBrgb(33, 40, 160)
HSLhsl(237, 66%, 38%)
HSVhsv(237, 79%, 63%)
CMYKcmyk(79.4%, 75%, 0%, 37.3%)
CIE-LABlab(24.88, 40.40, -64.78)
CIE-LCHlch(24.88, 76.34, 301.95°)
OKLaboklab(36.94% 0.0012 -0.1876)
OKLCHoklch(36.94% 0.188 270.4)
XYZxyz(7.7290, 4.3781, 33.6886)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2128A0 #A09921
analogous
#2167A0 #2128A0 #5921A0
triadic
#2128A0 #A02128 #28A021
tetradic
#2128A0 #A02167 #A09921 #21A059
square
#2128A0 #A02167 #A09921 #21A059
split-complementary
#2128A0 #A05921 #67A021
monochromatic
#0C0F3B #171B6D #2128A0 #2B35D3 #5E65DE

Accessibility & contrast

On white

11.20
#2128A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2128A0
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2128A0#FFFFFF#000000##FFFFFF
##2128A01.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2128a0;
/* rgb */ color: rgb(33, 40, 160);
/* oklch */ color: oklch(36.9% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#7463bd',
    500: '#2128a0',
    950: '#000000',
  },
}
SCSS
$custom: #2128a0;
$custom-light: #7463bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2128a0",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 236.693,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.18762,
    "h": 270.4
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#2128A0
secondary
#C2BD5B
accent
#DF3FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2128A0

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

Preview Lab → · Contrast checker → · Palette generator →

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