#2151CA#2151CA

#2151CA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.195 H 264.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2151CA
RGBrgb(33, 81, 202)
HSLhsl(223, 72%, 46%)
HSVhsv(223, 84%, 79%)
CMYKcmyk(83.7%, 59.9%, 0%, 20.8%)
CIE-LABlab(38.67, 29.81, -67.05)
CIE-LCHlch(38.67, 73.38, 293.97°)
OKLaboklab(48.23% -0.0205 -0.194)
OKLCHoklch(48.23% 0.195 264)
XYZxyz(14.2265, 10.4707, 57.1369)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151CA #CA9A21
analogous
#21A5CA #2151CA #4621CA
triadic
#2151CA #CA2151 #51CA21
tetradic
#2151CA #CA21A5 #CA9A21 #21CA46
square
#2151CA #CA21A5 #CA9A21 #21CA46
split-complementary
#2151CA #CA4621 #A5CA21
monochromatic
#102761 #183C95 #2151CA #4773E1 #7C9BEA

Accessibility & contrast

On white

6.79
#2151CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2151CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2151CA
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151CA#FFFFFF#000000##FFFFFF
##2151CA1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2151ca;
/* rgb */ color: rgb(33, 81, 202);
/* oklch */ color: oklch(48.2% 0.195 264.0);
Tailwind
colors: {
  custom: {
    50: '#7b81db',
    500: '#2151ca',
    950: '#000000',
  },
}
SCSS
$custom: #2151ca;
$custom-light: #7b81db;
$custom-dark: #000000;
JSON
{
  "hex": "#2151ca",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 222.959,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48231,
    "c": 0.19511,
    "h": 264
  },
  "luminance": 0.10472
}

Semantic roles & 50–950 ramp

primary
#2151CA
secondary
#D2B775
accent
#BB39EF
background
#F8F7FD
surface
#EFEEFB
border
#CAC9D4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2151CA

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

Preview Lab → · Contrast checker → · Palette generator →

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