#2151A9#2151A9

#2151A9 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.151 H 261.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#2151A9
RGBrgb(33, 81, 169)
HSLhsl(219, 67%, 40%)
HSVhsv(219, 80%, 66%)
CMYKcmyk(80.5%, 52.1%, 0%, 33.7%)
CIE-LABlab(36.12, 16.98, -51.82)
CIE-LCHlch(36.12, 54.53, 288.14°)
OKLaboklab(45.5% -0.023 -0.1493)
OKLCHoklch(45.5% 0.151 261.2)
XYZxyz(10.7285, 9.0715, 38.7140)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151A9 #A97921
analogous
#2195A9 #2151A9 #3521A9
triadic
#2151A9 #A92151 #51A921
tetradic
#2151A9 #A92195 #A97921 #21A935
square
#2151A9 #A92195 #A97921 #21A935
split-complementary
#2151A9 #A93521 #95A921
monochromatic
#0D2043 #173876 #2151A9 #316BD7 #6490E1

Accessibility & contrast

On white

7.46
#2151A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##2151A9#FFFFFF#000000##FFFFFF
##2151A91.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155BAC
Deuteranopia (green-blind)
#004FA7
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2151a9;
/* rgb */ color: rgb(33, 81, 169);
/* oklch */ color: oklch(45.5% 0.151 261.2);
Tailwind
colors: {
  custom: {
    50: '#7381c3',
    500: '#2151a9',
    950: '#000000',
  },
}
SCSS
$custom: #2151a9;
$custom-light: #7381c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2151a9",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 169
  },
  "hsl": {
    "h": 218.824,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45504,
    "c": 0.15104,
    "h": 261.2
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#2151A9
secondary
#C6A260
accent
#AD3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2151A9

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

Preview Lab → · Contrast checker → · Palette generator →

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