#2154A2#2154A2

#2154A2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.6% C 0.138 H 259.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#2154A2
RGBrgb(33, 84, 162)
HSLhsl(216, 66%, 38%)
HSVhsv(216, 80%, 64%)
CMYKcmyk(79.6%, 48.1%, 0%, 36.5%)
CIE-LABlab(36.50, 12.21, -47.03)
CIE-LCHlch(36.50, 48.59, 284.55°)
OKLaboklab(45.64% -0.0263 -0.1351)
OKLCHoklch(45.64% 0.138 259)
XYZxyz(10.3167, 9.2714, 35.4212)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2154A2 #A26F21
analogous
#2194A2 #2154A2 #2E21A2
triadic
#2154A2 #A22154 #54A221
tetradic
#2154A2 #A22194 #A26F21 #21A22E
square
#2154A2 #A22194 #A26F21 #21A22E
split-complementary
#2154A2 #A22E21 #94A221
monochromatic
#0C1F3C #173A6F #2154A2 #2C6FD4 #5F91DE

Accessibility & contrast

On white

7.36
#2154A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2154A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2154A2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2154A2#FFFFFF#000000##FFFFFF
##2154A21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2154a2;
/* rgb */ color: rgb(33, 84, 162);
/* oklch */ color: oklch(45.6% 0.138 259.0);
Tailwind
colors: {
  custom: {
    50: '#7183be',
    500: '#2154a2',
    950: '#000000',
  },
}
SCSS
$custom: #2154a2;
$custom-light: #7183be;
$custom-dark: #000000;
JSON
{
  "hex": "#2154a2",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 162
  },
  "hsl": {
    "h": 216.279,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45639,
    "c": 0.13765,
    "h": 259
  },
  "luminance": 0.09273
}

Semantic roles & 50–950 ramp

primary
#2154A2
secondary
#C39A5C
accent
#A63FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2154A2

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

Preview Lab → · Contrast checker → · Palette generator →

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