#1B4281#1B4281

#1B4281 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.115 H 259.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#1B4281
RGBrgb(27, 66, 129)
HSLhsl(217, 65%, 31%)
HSVhsv(217, 79%, 51%)
CMYKcmyk(79.1%, 48.8%, 0%, 49.4%)
CIE-LABlab(28.68, 10.42, -39.49)
CIE-LCHlch(28.68, 40.84, 284.79°)
OKLaboklab(38.85% -0.0207 -0.1134)
OKLCHoklch(38.85% 0.115 259.6)
XYZxyz(6.3612, 5.7137, 21.5322)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4281 #815A1B
analogous
#1B7581 #1B4281 #271B81
triadic
#1B4281 #811B42 #42811B
tetradic
#1B4281 #811B75 #815A1B #1B8127
square
#1B4281 #811B75 #815A1B #1B8127
split-complementary
#1B4281 #81271B #75811B
monochromatic
#060E1C #10284E #1B4281 #265CB4 #3F79D7

Accessibility & contrast

On white

9.80
#1B4281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1B4281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4281
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4281#FFFFFF#000000##FFFFFF
##1B42811.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4983
Deuteranopia (green-blind)
#033F80
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b4281;
/* rgb */ color: rgb(27, 66, 129);
/* oklch */ color: oklch(38.8% 0.115 259.6);
Tailwind
colors: {
  custom: {
    50: '#6875a6',
    500: '#1b4281',
    950: '#000000',
  },
}
SCSS
$custom: #1b4281;
$custom-light: #6875a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4281",
  "rgb": {
    "r": 27,
    "g": 66,
    "b": 129
  },
  "hsl": {
    "h": 217.059,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.11525,
    "h": 259.6
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#1B4281
secondary
#B58943
accent
#A83FE8
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B4281

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

Preview Lab → · Contrast checker → · Palette generator →

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