#1B51AA#1B51AA

#1B51AA is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.154 H 260.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#1B51AA
RGBrgb(27, 81, 170)
HSLhsl(217, 73%, 39%)
HSVhsv(217, 84%, 67%)
CMYKcmyk(84.1%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.02, 16.80, -52.59)
CIE-LCHlch(36.02, 55.21, 287.72°)
OKLaboklab(45.4% -0.0264 -0.1516)
OKLCHoklch(45.4% 0.154 260.1)
XYZxyz(10.6475, 9.0188, 39.2020)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B51AA #AA741B
analogous
#1B98AA #1B51AA #2D1BAA
triadic
#1B51AA #AA1B51 #51AA1B
tetradic
#1B51AA #AA1B98 #AA741B #1BAA2D
square
#1B51AA #AA1B98 #AA741B #1BAA2D
split-complementary
#1B51AA #AA2D1B #98AA1B
monochromatic
#0A1F40 #133875 #1B51AA #266BDC #5B8FE5

Accessibility & contrast

On white

7.49
#1B51AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#1B51AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B51AA
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B51AA#FFFFFF#000000##FFFFFF
##1B51AA1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1b51aa;
/* rgb */ color: rgb(27, 81, 170);
/* oklch */ color: oklch(45.4% 0.154 260.1);
Tailwind
colors: {
  custom: {
    50: '#7181c4',
    500: '#1b51aa',
    950: '#000000',
  },
}
SCSS
$custom: #1b51aa;
$custom-light: #7181c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b51aa",
  "rgb": {
    "r": 27,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 217.343,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.454,
    "c": 0.1539,
    "h": 260.1
  },
  "luminance": 0.0902
}

Semantic roles & 50–950 ramp

primary
#1B51AA
secondary
#C99E58
accent
#AA39EF
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #1B51AA

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

Preview Lab → · Contrast checker → · Palette generator →

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