#2B45BC#2B45BC

#2B45BC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.1% C 0.189 H 268.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#2B45BC
RGBrgb(43, 69, 188)
HSLhsl(229, 63%, 45%)
HSVhsv(229, 77%, 74%)
CMYKcmyk(77.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(34.80, 33.24, -65.20)
CIE-LCHlch(34.80, 73.18, 297.01°)
OKLaboklab(45.09% -0.0064 -0.1886)
OKLCHoklch(45.09% 0.189 268.1)
XYZxyz(12.1983, 8.3993, 48.5455)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B45BC #BCA22B
analogous
#2B8EBC #2B45BC #592BBC
triadic
#2B45BC #BC2B45 #45BC2B
tetradic
#2B45BC #BC2B8E #BCA22B #2BBC59
square
#2B45BC #BC2B8E #BCA22B #2BBC59
split-complementary
#2B45BC #BC592B #8EBC2B
monochromatic
#142058 #20338A #2B45BC #4E66D6 #8091E2

Accessibility & contrast

On white

7.84
#2B45BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2B45BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B45BC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B45BC#FFFFFF#000000##FFFFFF
##2B45BC1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2b45bc;
/* rgb */ color: rgb(43, 69, 188);
/* oklch */ color: oklch(45.1% 0.189 268.1);
Tailwind
colors: {
  custom: {
    50: '#7b78d1',
    500: '#2b45bc',
    950: '#000000',
  },
}
SCSS
$custom: #2b45bc;
$custom-light: #7b78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b45bc",
  "rgb": {
    "r": 43,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 229.241,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45088,
    "c": 0.18869,
    "h": 268.1
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#2B45BC
secondary
#CBBC78
accent
#C842E6
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2B45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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