#1B417D#1B417D

#1B417D is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.111 H 259.3°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1B417D
RGBrgb(27, 65, 125)
HSLhsl(217, 64%, 30%)
HSVhsv(217, 78%, 49%)
CMYKcmyk(78.4%, 48%, 0%, 51%)
CIE-LABlab(28.10, 9.48, -37.92)
CIE-LCHlch(28.10, 39.09, 284.04°)
OKLaboklab(38.31% -0.0205 -0.1088)
OKLCHoklch(38.31% 0.111 259.3)
XYZxyz(6.0426, 5.4936, 20.1400)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B417D #7D571B
analogous
#1B727D #1B417D #261B7D
triadic
#1B417D #7D1B41 #417D1B
tetradic
#1B417D #7D1B72 #7D571B #1B7D26
square
#1B417D #7D1B72 #7D571B #1B7D26
split-complementary
#1B417D #7D261B #727D1B
monochromatic
#050D19 #10274B #1B417D #265BAF #3D78D5

Accessibility & contrast

On white

10.01
#1B417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1B417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B417D
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B417D#FFFFFF#000000##FFFFFF
##1B417D1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#093E7C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b417d;
/* rgb */ color: rgb(27, 65, 125);
/* oklch */ color: oklch(38.3% 0.111 259.3);
Tailwind
colors: {
  custom: {
    50: '#6775a3',
    500: '#1b417d',
    950: '#000000',
  },
}
SCSS
$custom: #1b417d;
$custom-light: #6775a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b417d",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 216.735,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.11071,
    "h": 259.3
  },
  "luminance": 0.05494
}

Semantic roles & 50–950 ramp

primary
#1B417D
secondary
#B18643
accent
#A740E7
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B417D

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

Preview Lab → · Contrast checker → · Palette generator →

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