#2151A4#2151A4

#2151A4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.144 H 260.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2151A4
RGBrgb(33, 81, 164)
HSLhsl(218, 66%, 39%)
HSVhsv(218, 80%, 64%)
CMYKcmyk(79.9%, 50.6%, 0%, 35.7%)
CIE-LABlab(35.77, 15.00, -49.41)
CIE-LCHlch(35.77, 51.64, 286.89°)
OKLaboklab(45.12% -0.0236 -0.1422)
OKLCHoklch(45.12% 0.144 260.6)
XYZxyz(10.2680, 8.8873, 36.2890)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151A4 #A47421
analogous
#2192A4 #2151A4 #3221A4
triadic
#2151A4 #A42151 #51A421
tetradic
#2151A4 #A42192 #A47421 #21A432
square
#2151A4 #A42192 #A47421 #21A432
split-complementary
#2151A4 #A43221 #92A421
monochromatic
#0C1F3E #173871 #2151A4 #2D6BD5 #608FDF

Accessibility & contrast

On white

7.56
#2151A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2151A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2151A4
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151A4#FFFFFF#000000##FFFFFF
##2151A41.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5AA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2151a4;
/* rgb */ color: rgb(33, 81, 164);
/* oklch */ color: oklch(45.1% 0.144 260.6);
Tailwind
colors: {
  custom: {
    50: '#7281c0',
    500: '#2151a4',
    950: '#000000',
  },
}
SCSS
$custom: #2151a4;
$custom-light: #7281c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2151a4",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 218.015,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45119,
    "c": 0.14413,
    "h": 260.6
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

primary
#2151A4
secondary
#C49E5D
accent
#AB3EE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2151A4

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

Preview Lab → · Contrast checker → · Palette generator →

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