#1B5797#1B5797

#1B5797 is a mid, vivid cyan. Relative luminance 0.093; OKLCH L 45.4% C 0.121 H 253.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#1B5797
RGBrgb(27, 87, 151)
HSLhsl(211, 70%, 35%)
HSVhsv(211, 82%, 59%)
CMYKcmyk(82.1%, 42.4%, 0%, 40.8%)
CIE-LABlab(36.52, 5.19, -40.40)
CIE-LCHlch(36.52, 40.73, 277.32°)
OKLaboklab(45.38% -0.0345 -0.1156)
OKLCHoklch(45.38% 0.121 253.4)
XYZxyz(9.4440, 9.2826, 30.5661)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B5797 #975B1B
analogous
#1B9597 #1B5797 #1D1B97
triadic
#1B5797 #971B57 #57971B
tetradic
#1B5797 #971B95 #975B1B #1B971D
square
#1B5797 #971B95 #975B1B #1B971D
split-complementary
#1B5797 #971D1B #95971B
monochromatic
#081B2F #123963 #1B5797 #2475CB #4D94DF

Accessibility & contrast

On white

7.35
#1B5797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#1B5797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B5797
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B5797#FFFFFF#000000##FFFFFF
##1B57971.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9A
Deuteranopia (green-blind)
#215196
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1b5797;
/* rgb */ color: rgb(27, 87, 151);
/* oklch */ color: oklch(45.4% 0.121 253.4);
Tailwind
colors: {
  custom: {
    50: '#6c85b6',
    500: '#1b5797',
    950: '#000000',
  },
}
SCSS
$custom: #1b5797;
$custom-light: #6c85b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b5797",
  "rgb": {
    "r": 27,
    "g": 87,
    "b": 151
  },
  "hsl": {
    "h": 210.968,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4538,
    "c": 0.12067,
    "h": 253.4
  },
  "luminance": 0.09284
}

Semantic roles & 50–950 ramp

primary
#1B5797
secondary
#C1894C
accent
#973BEC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1B5797

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

Preview Lab → · Contrast checker → · Palette generator →

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