#2B54B8#2B54B8

#2B54B8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.165 H 264.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2B54B8
RGBrgb(43, 84, 184)
HSLhsl(223, 62%, 45%)
HSVhsv(223, 77%, 72%)
CMYKcmyk(76.6%, 54.3%, 0%, 27.8%)
CIE-LABlab(38.40, 21.91, -56.99)
CIE-LCHlch(38.40, 61.05, 291.03°)
OKLaboklab(47.68% -0.0166 -0.1642)
OKLCHoklch(47.68% 0.165 264.2)
XYZxyz(12.8152, 10.3135, 46.6534)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B54B8 #B88F2B
analogous
#2B9BB8 #2B54B8 #482BB8
triadic
#2B54B8 #B82B54 #54B82B
tetradic
#2B54B8 #B82B9B #B88F2B #2BB848
square
#2B54B8 #B82B9B #B88F2B #2BB848
split-complementary
#2B54B8 #B8482B #9BB82B
monochromatic
#142755 #1F3D86 #2B54B8 #4B73D5 #7D9AE1

Accessibility & contrast

On white

6.86
#2B54B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2B54B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B54B8
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B54B8#FFFFFF#000000##FFFFFF
##2B54B81.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2b54b8;
/* rgb */ color: rgb(43, 84, 184);
/* oklch */ color: oklch(47.7% 0.165 264.2);
Tailwind
colors: {
  custom: {
    50: '#7983ce',
    500: '#2b54b8',
    950: '#000000',
  },
}
SCSS
$custom: #2b54b8;
$custom-light: #7983ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b54b8",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 184
  },
  "hsl": {
    "h": 222.553,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47678,
    "c": 0.16509,
    "h": 264.2
  },
  "luminance": 0.10315
}

Semantic roles & 50–950 ramp

primary
#2B54B8
secondary
#C9B176
accent
#B643E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2B54B8

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

Preview Lab → · Contrast checker → · Palette generator →

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