#2151A2#2151A2

#2151A2 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.141 H 260.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#2151A2
RGBrgb(33, 81, 162)
HSLhsl(218, 66%, 38%)
HSVhsv(218, 80%, 64%)
CMYKcmyk(79.6%, 50%, 0%, 36.5%)
CIE-LABlab(35.63, 14.21, -48.44)
CIE-LCHlch(35.63, 50.48, 286.35°)
OKLaboklab(44.97% -0.0239 -0.1393)
OKLCHoklch(44.97% 0.141 260.3)
XYZxyz(10.0888, 8.8156, 35.3453)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151A2 #A27221
analogous
#2191A2 #2151A2 #3121A2
triadic
#2151A2 #A22151 #51A221
tetradic
#2151A2 #A22191 #A27221 #21A231
square
#2151A2 #A22191 #A27221 #21A231
split-complementary
#2151A2 #A23121 #91A221
monochromatic
#0C1E3C #17386F #2151A2 #2C6BD4 #5F8EDE

Accessibility & contrast

On white

7.60
#2151A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2151A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2151A2#FFFFFF#000000##FFFFFF
##2151A21.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2151a2;
/* rgb */ color: rgb(33, 81, 162);
/* oklch */ color: oklch(45.0% 0.141 260.3);
Tailwind
colors: {
  custom: {
    50: '#7181be',
    500: '#2151a2',
    950: '#000000',
  },
}
SCSS
$custom: #2151a2;
$custom-light: #7181be;
$custom-dark: #000000;
JSON
{
  "hex": "#2151a2",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 217.674,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44968,
    "c": 0.14136,
    "h": 260.3
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#2151A2
secondary
#C39D5C
accent
#AA3FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2151A2

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

Preview Lab → · Contrast checker → · Palette generator →

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