#2151C2#2151C2

#2151C2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.185 H 263.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#2151C2
RGBrgb(33, 81, 194)
HSLhsl(222, 71%, 45%)
HSVhsv(222, 83%, 76%)
CMYKcmyk(83%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.02, 26.74, -63.46)
CIE-LCHlch(38.02, 68.87, 292.85°)
OKLaboklab(47.54% -0.0209 -0.1835)
OKLCHoklch(47.54% 0.185 263.5)
XYZxyz(13.3038, 10.1016, 52.2771)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151C2 #C29221
analogous
#21A2C2 #2151C2 #4221C2
triadic
#2151C2 #C22151 #51C221
tetradic
#2151C2 #C221A2 #C29221 #21C242
square
#2151C2 #C221A2 #C29221 #21C242
split-complementary
#2151C2 #C24221 #A2C221
monochromatic
#0F2559 #183B8E #2151C2 #4170DF #7698E8

Accessibility & contrast

On white

6.95
#2151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2151C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2151C2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151C2#FFFFFF#000000##FFFFFF
##2151C21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2151c2;
/* rgb */ color: rgb(33, 81, 194);
/* oklch */ color: oklch(47.5% 0.185 263.5);
Tailwind
colors: {
  custom: {
    50: '#7981d5',
    500: '#2151c2',
    950: '#000000',
  },
}
SCSS
$custom: #2151c2;
$custom-light: #7981d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2151c2",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 222.112,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47542,
    "c": 0.18467,
    "h": 263.5
  },
  "luminance": 0.10103
}

Semantic roles & 50–950 ramp

primary
#2151C2
secondary
#CFB370
accent
#B83AEE
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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