#1B417E#1B417E

#1B417E is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.112 H 259.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#1B417E
RGBrgb(27, 65, 126)
HSLhsl(217, 65%, 30%)
HSVhsv(217, 79%, 49%)
CMYKcmyk(78.6%, 48.4%, 0%, 50.6%)
CIE-LABlab(28.17, 9.89, -38.44)
CIE-LCHlch(28.17, 39.69, 284.43°)
OKLaboklab(38.38% -0.0203 -0.1103)
OKLCHoklch(38.38% 0.112 259.5)
XYZxyz(6.1068, 5.5193, 20.4781)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B417E #7E581B
analogous
#1B727E #1B417E #271B7E
triadic
#1B417E #7E1B41 #417E1B
tetradic
#1B417E #7E1B72 #7E581B #1B7E27
square
#1B417E #7E1B72 #7E581B #1B7E27
split-complementary
#1B417E #7E271B #727E1B
monochromatic
#050D19 #10274C #1B417E #265BB0 #3E78D6

Accessibility & contrast

On white

9.98
#1B417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B417E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B417E#FFFFFF#000000##FFFFFF
##1B417E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#063E7D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b417e;
/* rgb */ color: rgb(27, 65, 126);
/* oklch */ color: oklch(38.4% 0.112 259.5);
Tailwind
colors: {
  custom: {
    50: '#6775a4',
    500: '#1b417e',
    950: '#000000',
  },
}
SCSS
$custom: #1b417e;
$custom-light: #6775a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b417e",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 216.97,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.38384,
    "c": 0.11217,
    "h": 259.5
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#1B417E
secondary
#B28743
accent
#A740E8
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B417E

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

Preview Lab → · Contrast checker → · Palette generator →

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