#1B407D#1B407D

#1B407D is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.112 H 259.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#1B407D
RGBrgb(27, 64, 125)
HSLhsl(217, 64%, 30%)
HSVhsv(217, 78%, 49%)
CMYKcmyk(78.4%, 48.8%, 0%, 51%)
CIE-LABlab(27.79, 10.18, -38.42)
CIE-LCHlch(27.79, 39.74, 284.84°)
OKLaboklab(38.07% -0.0196 -0.1103)
OKLCHoklch(38.07% 0.112 259.9)
XYZxyz(5.9857, 5.3798, 20.1210)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B407D #7D581B
analogous
#1B717D #1B407D #271B7D
triadic
#1B407D #7D1B40 #407D1B
tetradic
#1B407D #7D1B71 #7D581B #1B7D27
square
#1B407D #7D1B71 #7D581B #1B7D27
split-complementary
#1B407D #7D271B #717D1B
monochromatic
#050D19 #10264B #1B407D #265AAF #3D77D5

Accessibility & contrast

On white

10.12
#1B407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1B407D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B407D
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B407D#FFFFFF#000000##FFFFFF
##1B407D1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467F
Deuteranopia (green-blind)
#053D7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b407d;
/* rgb */ color: rgb(27, 64, 125);
/* oklch */ color: oklch(38.1% 0.112 259.9);
Tailwind
colors: {
  custom: {
    50: '#6774a3',
    500: '#1b407d',
    950: '#000000',
  },
}
SCSS
$custom: #1b407d;
$custom-light: #6774a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b407d",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 217.347,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38073,
    "c": 0.11199,
    "h": 259.9
  },
  "luminance": 0.0538
}

Semantic roles & 50–950 ramp

primary
#1B407D
secondary
#B18743
accent
#A840E7
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B407D

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

Preview Lab → · Contrast checker → · Palette generator →

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