#1B417B#1B417B

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

Color values

HEX#1B417B
RGBrgb(27, 65, 123)
HSLhsl(216, 64%, 29%)
HSVhsv(216, 78%, 48%)
CMYKcmyk(78%, 47.2%, 0%, 51.8%)
CIE-LABlab(27.96, 8.67, -36.89)
CIE-LCHlch(27.96, 37.89, 283.22°)
OKLaboklab(38.16% -0.0209 -0.1057)
OKLCHoklch(38.16% 0.108 258.8)
XYZxyz(5.9161, 5.4430, 19.4739)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B417B #7B551B
analogous
#1B717B #1B417B #251B7B
triadic
#1B417B #7B1B41 #417B1B
tetradic
#1B417B #7B1B71 #7B551B #1B7B25
square
#1B417B #7B1B71 #7B551B #1B7B25
split-complementary
#1B417B #7B251B #717B1B
monochromatic
#060D19 #102649 #1B417B #265CAD #3C78D4

Accessibility & contrast

On white

10.05
#1B417B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B417B
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B417B#FFFFFF#000000##FFFFFF
##1B417B1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#0E3E7A
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b417b;
/* rgb */ color: rgb(27, 65, 123);
/* oklch */ color: oklch(38.2% 0.108 258.8);
Tailwind
colors: {
  custom: {
    50: '#6675a1',
    500: '#1b417b',
    950: '#000000',
  },
}
SCSS
$custom: #1b417b;
$custom-light: #6675a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b417b",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 123
  },
  "hsl": {
    "h": 216.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38161,
    "c": 0.10779,
    "h": 258.8
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#1B417B
secondary
#AF8443
accent
#A541E7
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B417B

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

Preview Lab → · Contrast checker → · Palette generator →

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