#2B54BC#2B54BC

#2B54BC is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.0% C 0.171 H 264.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2B54BC
RGBrgb(43, 84, 188)
HSLhsl(223, 63%, 45%)
HSVhsv(223, 77%, 74%)
CMYKcmyk(77.1%, 55.3%, 0%, 26.3%)
CIE-LABlab(38.70, 23.43, -58.85)
CIE-LCHlch(38.70, 63.34, 291.71°)
OKLaboklab(48% -0.0163 -0.1697)
OKLCHoklch(48% 0.171 264.5)
XYZxyz(13.2405, 10.4836, 48.8929)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B54BC #BC932B
analogous
#2B9DBC #2B54BC #4A2BBC
triadic
#2B54BC #BC2B54 #54BC2B
tetradic
#2B54BC #BC2B9D #BC932B #2BBC4A
square
#2B54BC #BC2B9D #BC932B #2BBC4A
split-complementary
#2B54BC #BC4A2B #9DBC2B
monochromatic
#142758 #203E8A #2B54BC #4E74D6 #809BE2

Accessibility & contrast

On white

6.78
#2B54BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2B54BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B54BC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B54BC#FFFFFF#000000##FFFFFF
##2B54BC1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#006E80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2b54bc;
/* rgb */ color: rgb(43, 84, 188);
/* oklch */ color: oklch(48.0% 0.171 264.5);
Tailwind
colors: {
  custom: {
    50: '#7a83d1',
    500: '#2b54bc',
    950: '#000000',
  },
}
SCSS
$custom: #2b54bc;
$custom-light: #7a83d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b54bc",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 223.034,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47996,
    "c": 0.17051,
    "h": 264.5
  },
  "luminance": 0.10485
}

Semantic roles & 50–950 ramp

primary
#2B54BC
secondary
#CBB378
accent
#B742E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2B54BC

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

Preview Lab → · Contrast checker → · Palette generator →

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