#2151A8#2151A8

#2151A8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.150 H 261.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2151A8
RGBrgb(33, 81, 168)
HSLhsl(219, 67%, 39%)
HSVhsv(219, 80%, 66%)
CMYKcmyk(80.4%, 51.8%, 0%, 34.1%)
CIE-LABlab(36.05, 16.58, -51.34)
CIE-LCHlch(36.05, 53.96, 287.90°)
OKLaboklab(45.43% -0.0231 -0.1479)
OKLCHoklch(45.43% 0.15 261.1)
XYZxyz(10.6350, 9.0341, 38.2214)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151A8 #A87821
analogous
#2195A8 #2151A8 #3521A8
triadic
#2151A8 #A82151 #51A821
tetradic
#2151A8 #A82195 #A87821 #21A835
square
#2151A8 #A82195 #A87821 #21A835
split-complementary
#2151A8 #A83521 #95A821
monochromatic
#0D2042 #173875 #2151A8 #306BD6 #6390E0

Accessibility & contrast

On white

7.48
#2151A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2151A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2151A8
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151A8#FFFFFF#000000##FFFFFF
##2151A81.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2151a8;
/* rgb */ color: rgb(33, 81, 168);
/* oklch */ color: oklch(45.4% 0.150 261.1);
Tailwind
colors: {
  custom: {
    50: '#7281c2',
    500: '#2151a8',
    950: '#000000',
  },
}
SCSS
$custom: #2151a8;
$custom-light: #7281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2151a8",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 218.667,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.14965,
    "h": 261.1
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#2151A8
secondary
#C5A15F
accent
#AD3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2151A8

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

Preview Lab → · Contrast checker → · Palette generator →

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