#1B4F8B#1B4F8B

#1B4F8B is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.7% C 0.113 H 254.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1B4F8B
RGBrgb(27, 79, 139)
HSLhsl(212, 67%, 33%)
HSVhsv(212, 81%, 55%)
CMYKcmyk(80.6%, 43.2%, 0%, 45.5%)
CIE-LABlab(33.32, 5.66, -38.22)
CIE-LCHlch(33.32, 38.63, 278.42°)
OKLaboklab(42.65% -0.0303 -0.1094)
OKLCHoklch(42.65% 0.113 254.5)
XYZxyz(7.9064, 7.6881, 25.4883)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4F8B #8B571B
analogous
#1B878B #1B4F8B #1F1B8B
triadic
#1B4F8B #8B1B4F #4F8B1B
tetradic
#1B4F8B #8B1B87 #8B571B #1B8B1F
square
#1B4F8B #8B1B87 #8B571B #1B8B1F
split-complementary
#1B4F8B #8B1F1B #878B1B
monochromatic
#071525 #113258 #1B4F8B #256CBE #458BDB

Accessibility & contrast

On white

8.27
#1B4F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1B4F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4F8B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4F8B#FFFFFF#000000##FFFFFF
##1B4F8B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548D
Deuteranopia (green-blind)
#1D4A8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1b4f8b;
/* rgb */ color: rgb(27, 79, 139);
/* oklch */ color: oklch(42.7% 0.113 254.5);
Tailwind
colors: {
  custom: {
    50: '#6a7fad',
    500: '#1b4f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1b4f8b;
$custom-light: #6a7fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4f8b",
  "rgb": {
    "r": 27,
    "g": 79,
    "b": 139
  },
  "hsl": {
    "h": 212.143,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42651,
    "c": 0.11348,
    "h": 254.5
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

primary
#1B4F8B
secondary
#BC8545
accent
#9A3DEA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1B4F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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