#1B4A8E#1B4A8E

#1B4A8E is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.7% C 0.124 H 258.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#1B4A8E
RGBrgb(27, 74, 142)
HSLhsl(215, 68%, 33%)
HSVhsv(215, 81%, 56%)
CMYKcmyk(81%, 47.9%, 0%, 44.3%)
CIE-LABlab(31.99, 10.24, -42.19)
CIE-LCHlch(31.99, 43.41, 283.64°)
OKLaboklab(41.68% -0.0253 -0.1211)
OKLCHoklch(41.68% 0.124 258.2)
XYZxyz(7.7815, 7.0826, 26.5429)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4A8E #8E5F1B
analogous
#1B838E #1B4A8E #251B8E
triadic
#1B4A8E #8E1B4A #4A8E1B
tetradic
#1B4A8E #8E1B83 #8E5F1B #1B8E25
square
#1B4A8E #8E1B83 #8E5F1B #1B8E25
split-complementary
#1B4A8E #8E251B #838E1B
monochromatic
#071427 #112F5B #1B4A8E #2565C1 #4784DC

Accessibility & contrast

On white

8.69
#1B4A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1B4A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4A8E
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4A8E#FFFFFF#000000##FFFFFF
##1B4A8E1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#04468D
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1b4a8e;
/* rgb */ color: rgb(27, 74, 142);
/* oklch */ color: oklch(41.7% 0.124 258.2);
Tailwind
colors: {
  custom: {
    50: '#6b7baf',
    500: '#1b4a8e',
    950: '#000000',
  },
}
SCSS
$custom: #1b4a8e;
$custom-light: #6b7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4a8e",
  "rgb": {
    "r": 27,
    "g": 74,
    "b": 142
  },
  "hsl": {
    "h": 215.478,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41683,
    "c": 0.12376,
    "h": 258.2
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#1B4A8E
secondary
#BE8D47
accent
#A43DEB
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1B4A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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