#1B4F8A#1B4F8A

#1B4F8A is a dark, moderate cyan. Relative luminance 0.077; OKLCH L 42.6% C 0.112 H 254.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#1B4F8A
RGBrgb(27, 79, 138)
HSLhsl(212, 67%, 32%)
HSVhsv(212, 80%, 54%)
CMYKcmyk(80.4%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.26, 5.26, -37.70)
CIE-LCHlch(33.26, 38.07, 277.94°)
OKLaboklab(42.58% -0.0305 -0.1079)
OKLCHoklch(42.58% 0.112 254.2)
XYZxyz(7.8337, 7.6590, 25.1053)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4F8A #8A561B
analogous
#1B878A #1B4F8A #1F1B8A
triadic
#1B4F8A #8A1B4F #4F8A1B
tetradic
#1B4F8A #8A1B87 #8A561B #1B8A1F
square
#1B4F8A #8A1B87 #8A561B #1B8A1F
split-complementary
#1B4F8A #8A1F1B #878A1B
monochromatic
#071424 #113257 #1B4F8A #256CBD #458BDB

Accessibility & contrast

On white

8.29
#1B4F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1B4F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4F8A
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4F8A#FFFFFF#000000##FFFFFF
##1B4F8A1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1b4f8a;
/* rgb */ color: rgb(27, 79, 138);
/* oklch */ color: oklch(42.6% 0.112 254.2);
Tailwind
colors: {
  custom: {
    50: '#6a7fac',
    500: '#1b4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b4f8a;
$custom-light: #6a7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4f8a",
  "rgb": {
    "r": 27,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 211.892,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42582,
    "c": 0.11209,
    "h": 254.2
  },
  "luminance": 0.0766
}

Semantic roles & 50–950 ramp

primary
#1B4F8A
secondary
#BC8445
accent
#993EEA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1B4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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