#1B407C#1B407C

#1B407C is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.111 H 259.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1B407C
RGBrgb(27, 64, 124)
HSLhsl(217, 64%, 30%)
HSVhsv(217, 78%, 49%)
CMYKcmyk(78.2%, 48.4%, 0%, 51.4%)
CIE-LABlab(27.72, 9.77, -37.90)
CIE-LCHlch(27.72, 39.14, 284.45°)
OKLaboklab(38% -0.0198 -0.1087)
OKLCHoklch(38% 0.111 259.7)
XYZxyz(5.9222, 5.3544, 19.7863)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B407C #7C571B
analogous
#1B717C #1B407C #261B7C
triadic
#1B407C #7C1B40 #407C1B
tetradic
#1B407C #7C1B71 #7C571B #1B7C26
square
#1B407C #7C1B71 #7C571B #1B7C26
split-complementary
#1B407C #7C261B #717C1B
monochromatic
#050D19 #10264A #1B407C #265AAE #3D77D5

Accessibility & contrast

On white

10.14
#1B407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1B407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B407C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B407C#FFFFFF#000000##FFFFFF
##1B407C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467E
Deuteranopia (green-blind)
#073D7B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1b407c;
/* rgb */ color: rgb(27, 64, 124);
/* oklch */ color: oklch(38.0% 0.111 259.7);
Tailwind
colors: {
  custom: {
    50: '#6774a2',
    500: '#1b407c',
    950: '#000000',
  },
}
SCSS
$custom: #1b407c;
$custom-light: #6774a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b407c",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 217.113,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37998,
    "c": 0.11053,
    "h": 259.7
  },
  "luminance": 0.05355
}

Semantic roles & 50–950 ramp

primary
#1B407C
secondary
#B08643
accent
#A841E7
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B407C

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

Preview Lab → · Contrast checker → · Palette generator →

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