#2151AA#2151AA

#2151AA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.152 H 261.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#2151AA
RGBrgb(33, 81, 170)
HSLhsl(219, 67%, 40%)
HSVhsv(219, 81%, 67%)
CMYKcmyk(80.6%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.19, 17.37, -52.30)
CIE-LCHlch(36.19, 55.11, 288.38°)
OKLaboklab(45.58% -0.0228 -0.1507)
OKLCHoklch(45.58% 0.152 261.4)
XYZxyz(10.8227, 9.1092, 39.2103)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151AA #AA7A21
analogous
#2196AA #2151AA #3521AA
triadic
#2151AA #AA2151 #51AA21
tetradic
#2151AA #AA2196 #AA7A21 #21AA35
square
#2151AA #AA2196 #AA7A21 #21AA35
split-complementary
#2151AA #AA3521 #96AA21
monochromatic
#0D2043 #173977 #2151AA #316BD7 #6490E1

Accessibility & contrast

On white

7.44
#2151AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2151AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2151AA#FFFFFF#000000##FFFFFF
##2151AA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135CAD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2151aa;
/* rgb */ color: rgb(33, 81, 170);
/* oklch */ color: oklch(45.6% 0.152 261.4);
Tailwind
colors: {
  custom: {
    50: '#7381c4',
    500: '#2151aa',
    950: '#000000',
  },
}
SCSS
$custom: #2151aa;
$custom-light: #7381c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2151aa",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 218.978,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45581,
    "c": 0.1524,
    "h": 261.4
  },
  "luminance": 0.0911
}

Semantic roles & 50–950 ramp

primary
#2151AA
secondary
#C6A361
accent
#AE3DEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2151AA

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

Preview Lab → · Contrast checker → · Palette generator →

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