#1B407F#1B407F

#1B407F is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.2% C 0.115 H 260.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#1B407F
RGBrgb(27, 64, 127)
HSLhsl(218, 65%, 30%)
HSVhsv(218, 79%, 50%)
CMYKcmyk(78.7%, 49.6%, 0%, 50.2%)
CIE-LABlab(27.93, 10.99, -39.45)
CIE-LCHlch(27.93, 40.95, 285.57°)
OKLaboklab(38.22% -0.0193 -0.1133)
OKLCHoklch(38.22% 0.115 260.3)
XYZxyz(6.1148, 5.4314, 20.8007)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B407F #7F5A1B
analogous
#1B727F #1B407F #281B7F
triadic
#1B407F #7F1B40 #407F1B
tetradic
#1B407F #7F1B72 #7F5A1B #1B7F28
square
#1B407F #7F1B72 #7F5A1B #1B7F28
split-complementary
#1B407F #7F281B #727F1B
monochromatic
#060D1A #10274D #1B407F #2659B1 #3E76D6

Accessibility & contrast

On white

10.07
#1B407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1B407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B407F
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B407F#FFFFFF#000000##FFFFFF
##1B407F1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4781
Deuteranopia (green-blind)
#003E7E
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b407f;
/* rgb */ color: rgb(27, 64, 127);
/* oklch */ color: oklch(38.2% 0.115 260.3);
Tailwind
colors: {
  custom: {
    50: '#6774a4',
    500: '#1b407f',
    950: '#000000',
  },
}
SCSS
$custom: #1b407f;
$custom-light: #6774a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b407f",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 217.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38225,
    "c": 0.11491,
    "h": 260.3
  },
  "luminance": 0.05432
}

Semantic roles & 50–950 ramp

primary
#1B407F
secondary
#B38943
accent
#AA40E8
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B407F

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

Preview Lab → · Contrast checker → · Palette generator →

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