#1B417F#1B417F

#1B417F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.114 H 259.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1B417F
RGBrgb(27, 65, 127)
HSLhsl(217, 65%, 30%)
HSVhsv(217, 79%, 50%)
CMYKcmyk(78.7%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.23, 10.30, -38.95)
CIE-LCHlch(28.23, 40.29, 284.81°)
OKLaboklab(38.46% -0.0202 -0.1118)
OKLCHoklch(38.46% 0.114 259.8)
XYZxyz(6.1717, 5.5452, 20.8196)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B417F #7F591B
analogous
#1B737F #1B417F #271B7F
triadic
#1B417F #7F1B41 #417F1B
tetradic
#1B417F #7F1B73 #7F591B #1B7F27
square
#1B417F #7F1B73 #7F591B #1B7F27
split-complementary
#1B417F #7F271B #737F1B
monochromatic
#060D1A #10274D #1B417F #265BB1 #3E78D6

Accessibility & contrast

On white

9.96
#1B417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1B417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B417F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B417F#FFFFFF#000000##FFFFFF
##1B417F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4781
Deuteranopia (green-blind)
#043E7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1b417f;
/* rgb */ color: rgb(27, 65, 127);
/* oklch */ color: oklch(38.5% 0.114 259.8);
Tailwind
colors: {
  custom: {
    50: '#6775a4',
    500: '#1b417f',
    950: '#000000',
  },
}
SCSS
$custom: #1b417f;
$custom-light: #6775a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b417f",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 217.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38459,
    "c": 0.11362,
    "h": 259.8
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#1B417F
secondary
#B38843
accent
#A840E8
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B417F

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

Preview Lab → · Contrast checker → · Palette generator →

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