#1B407A#1B407A

#1B407A is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.108 H 259.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#1B407A
RGBrgb(27, 64, 122)
HSLhsl(217, 64%, 29%)
HSVhsv(217, 78%, 48%)
CMYKcmyk(77.9%, 47.5%, 0%, 52.2%)
CIE-LABlab(27.58, 8.95, -36.86)
CIE-LCHlch(27.58, 37.94, 283.65°)
OKLaboklab(37.85% -0.0202 -0.1057)
OKLCHoklch(37.85% 0.108 259.2)
XYZxyz(5.7970, 5.3043, 19.1269)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B407A #7A551B
analogous
#1B707A #1B407A #261B7A
triadic
#1B407A #7A1B40 #407A1B
tetradic
#1B407A #7A1B70 #7A551B #1B7A26
square
#1B407A #7A1B70 #7A551B #1B7A26
split-complementary
#1B407A #7A261B #707A1B
monochromatic
#060D19 #102648 #1B407A #265AAC #3C77D4

Accessibility & contrast

On white

10.19
#1B407A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1B407A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B407A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B407A#FFFFFF#000000##FFFFFF
##1B407A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#0C3D79
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b407a;
/* rgb */ color: rgb(27, 64, 122);
/* oklch */ color: oklch(37.8% 0.108 259.2);
Tailwind
colors: {
  custom: {
    50: '#6674a1',
    500: '#1b407a',
    950: '#000000',
  },
}
SCSS
$custom: #1b407a;
$custom-light: #6674a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b407a",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 122
  },
  "hsl": {
    "h": 216.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37848,
    "c": 0.1076,
    "h": 259.2
  },
  "luminance": 0.05305
}

Semantic roles & 50–950 ramp

primary
#1B407A
secondary
#AE8443
accent
#A641E7
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #1B407A

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

Preview Lab → · Contrast checker → · Palette generator →

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