#1B54A7#1B54A7

#1B54A7 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 45.8% C 0.146 H 258.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#1B54A7
RGBrgb(27, 84, 167)
HSLhsl(216, 72%, 38%)
HSVhsv(216, 84%, 65%)
CMYKcmyk(83.8%, 49.7%, 0%, 34.5%)
CIE-LABlab(36.67, 13.59, -49.75)
CIE-LCHlch(36.67, 51.57, 285.28°)
OKLaboklab(45.83% -0.029 -0.1432)
OKLCHoklch(45.83% 0.146 258.5)
XYZxyz(10.5948, 9.3624, 37.8004)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B54A7 #A76E1B
analogous
#1B9AA7 #1B54A7 #281BA7
triadic
#1B54A7 #A71B54 #54A71B
tetradic
#1B54A7 #A71B9A #A76E1B #1BA728
square
#1B54A7 #A71B9A #A76E1B #1BA728
split-complementary
#1B54A7 #A7281B #9AA71B
monochromatic
#0A1F3E #123A72 #1B54A7 #246FDC #5891E4

Accessibility & contrast

On white

7.31
#1B54A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#1B54A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B54A7
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B54A7#FFFFFF#000000##FFFFFF
##1B54A71.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DAA
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1b54a7;
/* rgb */ color: rgb(27, 84, 167);
/* oklch */ color: oklch(45.8% 0.146 258.5);
Tailwind
colors: {
  custom: {
    50: '#7083c2',
    500: '#1b54a7',
    950: '#000000',
  },
}
SCSS
$custom: #1b54a7;
$custom-light: #7083c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b54a7",
  "rgb": {
    "r": 27,
    "g": 84,
    "b": 167
  },
  "hsl": {
    "h": 215.571,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45832,
    "c": 0.1461,
    "h": 258.5
  },
  "luminance": 0.09364
}

Semantic roles & 50–950 ramp

primary
#1B54A7
secondary
#C89956
accent
#A539EF
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1B54A7

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

Preview Lab → · Contrast checker → · Palette generator →

#1B54A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva