#2128A8#2128A8

#2128A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.197 H 270.0°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2128A8
RGBrgb(33, 40, 168)
HSLhsl(237, 67%, 39%)
HSVhsv(237, 80%, 66%)
CMYKcmyk(80.4%, 76.2%, 0%, 34.1%)
CIE-LABlab(25.76, 43.15, -68.18)
CIE-LCHlch(25.76, 80.68, 302.33°)
OKLaboklab(37.82% -0.0001 -0.1975)
OKLCHoklch(37.82% 0.197 270)
XYZxyz(8.4515, 4.6671, 37.4936)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2128A8 #A8A121
analogous
#216CA8 #2128A8 #5E21A8
triadic
#2128A8 #A82128 #28A821
tetradic
#2128A8 #A8216C #A8A121 #21A85E
square
#2128A8 #A8216C #A8A121 #21A85E
split-complementary
#2128A8 #A85E21 #6CA821
monochromatic
#0D1042 #171C75 #2128A8 #3039D6 #636AE0

Accessibility & contrast

On white

10.86
#2128A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2128A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2128A8
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2128A8#FFFFFF#000000##FFFFFF
##2128A81.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2128a8;
/* rgb */ color: rgb(33, 40, 168);
/* oklch */ color: oklch(37.8% 0.197 270.0);
Tailwind
colors: {
  custom: {
    50: '#7664c3',
    500: '#2128a8',
    950: '#000000',
  },
}
SCSS
$custom: #2128a8;
$custom-light: #7664c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2128a8",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 236.889,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37825,
    "c": 0.19748,
    "h": 270
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#2128A8
secondary
#C5C05F
accent
#E13EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2128A8

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

Preview Lab → · Contrast checker → · Palette generator →

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