#1B51B4#1B51B4

#1B51B4 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.167 H 261.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#1B51B4
RGBrgb(27, 81, 180)
HSLhsl(219, 74%, 41%)
HSVhsv(219, 85%, 71%)
CMYKcmyk(85%, 55%, 0%, 29.4%)
CIE-LABlab(36.77, 20.79, -57.31)
CIE-LCHlch(36.77, 60.96, 289.94°)
OKLaboklab(46.2% -0.0253 -0.1655)
OKLCHoklch(46.2% 0.167 261.3)
XYZxyz(11.6297, 9.4117, 44.3749)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B51B4 #B47E1B
analogous
#1B9DB4 #1B51B4 #321BB4
triadic
#1B51B4 #B41B51 #51B41B
tetradic
#1B51B4 #B41B9D #B47E1B #1BB432
square
#1B51B4 #B41B9D #B47E1B #1BB432
split-complementary
#1B51B4 #B4321B #9DB41B
monochromatic
#0B214A #13397F #1B51B4 #2D6CDF #6291E7

Accessibility & contrast

On white

7.29
#1B51B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#1B51B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B51B4
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B51B4#FFFFFF#000000##FFFFFF
##1B51B41.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1b51b4;
/* rgb */ color: rgb(27, 81, 180);
/* oklch */ color: oklch(46.2% 0.167 261.3);
Tailwind
colors: {
  custom: {
    50: '#7481cb',
    500: '#1b51b4',
    950: '#000000',
  },
}
SCSS
$custom: #1b51b4;
$custom-light: #7481cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1b51b4",
  "rgb": {
    "r": 27,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 218.824,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46202,
    "c": 0.16741,
    "h": 261.3
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

primary
#1B51B4
secondary
#CCA55F
accent
#AF37F1
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1B51B4

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

Preview Lab → · Contrast checker → · Palette generator →

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