#2B54B7#2B54B7

#2B54B7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.164 H 264.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2B54B7
RGBrgb(43, 84, 183)
HSLhsl(222, 62%, 44%)
HSVhsv(222, 77%, 72%)
CMYKcmyk(76.5%, 54.1%, 0%, 28.2%)
CIE-LABlab(38.33, 21.53, -56.52)
CIE-LCHlch(38.33, 60.48, 290.85°)
OKLaboklab(47.6% -0.0167 -0.1629)
OKLCHoklch(47.6% 0.164 264.1)
XYZxyz(12.7108, 10.2717, 46.1033)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B54B7 #B78E2B
analogous
#2B9AB7 #2B54B7 #482BB7
triadic
#2B54B7 #B72B54 #54B72B
tetradic
#2B54B7 #B72B9A #B78E2B #2BB748
square
#2B54B7 #B72B9A #B78E2B #2BB748
split-complementary
#2B54B7 #B7482B #9AB72B
monochromatic
#142754 #1F3D85 #2B54B7 #4B73D5 #7C99E0

Accessibility & contrast

On white

6.87
#2B54B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2B54B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B54B7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B54B7#FFFFFF#000000##FFFFFF
##2B54B71.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BA
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2b54b7;
/* rgb */ color: rgb(43, 84, 183);
/* oklch */ color: oklch(47.6% 0.164 264.1);
Tailwind
colors: {
  custom: {
    50: '#7983cd',
    500: '#2b54b7',
    950: '#000000',
  },
}
SCSS
$custom: #2b54b7;
$custom-light: #7983cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b54b7",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 183
  },
  "hsl": {
    "h": 222.429,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47599,
    "c": 0.16372,
    "h": 264.1
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

primary
#2B54B7
secondary
#C9B075
accent
#B643E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #2B54B7

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

Preview Lab → · Contrast checker → · Palette generator →

#2B54B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva