#2B54A1#2B54A1

#2B54A1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.9% C 0.133 H 261.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2B54A1
RGBrgb(43, 84, 161)
HSLhsl(219, 58%, 40%)
HSVhsv(219, 73%, 63%)
CMYKcmyk(73.3%, 47.8%, 0%, 36.9%)
CIE-LABlab(36.79, 13.10, -45.95)
CIE-LCHlch(36.79, 47.78, 285.91°)
OKLaboklab(45.94% -0.0194 -0.1318)
OKLCHoklch(45.94% 0.133 261.6)
XYZxyz(10.5973, 9.4263, 34.9723)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B54A1 #A1782B
analogous
#2B8FA1 #2B54A1 #3D2BA1
triadic
#2B54A1 #A12B54 #54A12B
tetradic
#2B54A1 #A12B8F #A1782B #2BA13D
square
#2B54A1 #A12B8F #A1782B #2BA13D
split-complementary
#2B54A1 #A13D2B #8FA12B
monochromatic
#112240 #1E3B71 #2B54A1 #3E6FCB #6E93D8

Accessibility & contrast

On white

7.28
#2B54A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2B54A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B54A1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B54A1#FFFFFF#000000##FFFFFF
##2B54A11.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5CA4
Deuteranopia (green-blind)
#0D519F
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2b54a1;
/* rgb */ color: rgb(43, 84, 161);
/* oklch */ color: oklch(45.9% 0.133 261.6);
Tailwind
colors: {
  custom: {
    50: '#7483bd',
    500: '#2b54a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b54a1;
$custom-light: #7483bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b54a1",
  "rgb": {
    "r": 43,
    "g": 84,
    "b": 161
  },
  "hsl": {
    "h": 219.153,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.13319,
    "h": 261.6
  },
  "luminance": 0.09427
}

Semantic roles & 50–950 ramp

primary
#2B54A1
secondary
#BFA169
accent
#AB47E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2B54A1

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

Preview Lab → · Contrast checker → · Palette generator →

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