#1B417C#1B417C

#1B417C is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.2% C 0.109 H 259.1°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#1B417C
RGBrgb(27, 65, 124)
HSLhsl(216, 64%, 30%)
HSVhsv(216, 78%, 49%)
CMYKcmyk(78.2%, 47.6%, 0%, 51.4%)
CIE-LABlab(28.03, 9.07, -37.41)
CIE-LCHlch(28.03, 38.49, 283.64°)
OKLaboklab(38.23% -0.0207 -0.1073)
OKLCHoklch(38.23% 0.109 259.1)
XYZxyz(5.9791, 5.4682, 19.8052)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B417C #7C561B
analogous
#1B727C #1B417C #261B7C
triadic
#1B417C #7C1B41 #417C1B
tetradic
#1B417C #7C1B72 #7C561B #1B7C26
square
#1B417C #7C1B72 #7C561B #1B7C26
split-complementary
#1B417C #7C261B #727C1B
monochromatic
#050D19 #10274A #1B417C #265BAE #3D78D5

Accessibility & contrast

On white

10.03
#1B417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B417C
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B417C#FFFFFF#000000##FFFFFF
##1B417C1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1b417c;
/* rgb */ color: rgb(27, 65, 124);
/* oklch */ color: oklch(38.2% 0.109 259.1);
Tailwind
colors: {
  custom: {
    50: '#6675a2',
    500: '#1b417c',
    950: '#000000',
  },
}
SCSS
$custom: #1b417c;
$custom-light: #6675a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b417c",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 216.495,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38234,
    "c": 0.10925,
    "h": 259.1
  },
  "luminance": 0.05469
}

Semantic roles & 50–950 ramp

primary
#1B417C
secondary
#B08543
accent
#A641E7
background
#F6F7FA
surface
#EBEDF3
border
#C6C8CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1B417C

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

Preview Lab → · Contrast checker → · Palette generator →

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