#1D407E#1D407E

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

Color values

HEX#1D407E
RGBrgb(29, 64, 126)
HSLhsl(218, 63%, 30%)
HSVhsv(218, 77%, 49%)
CMYKcmyk(77%, 49.2%, 0%, 50.6%)
CIE-LABlab(27.94, 10.86, -38.81)
CIE-LCHlch(27.94, 40.30, 285.63°)
OKLaboklab(38.23% -0.0179 -0.1114)
OKLCHoklch(38.23% 0.113 260.8)
XYZxyz(6.1046, 5.4337, 20.4617)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D407E #7E5B1D
analogous
#1D707E #1D407E #2B1D7E
triadic
#1D407E #7E1D40 #407E1D
tetradic
#1D407E #7E1D70 #7E5B1D #1D7E2B
square
#1D407E #7E1D70 #7E5B1D #1D7E2B
split-complementary
#1D407E #7E2B1D #707E1D
monochromatic
#060D1B #12274C #1D407E #2859B0 #4276D3

Accessibility & contrast

On white

10.06
#1D407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D407E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D407E#FFFFFF#000000##FFFFFF
##1D407E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4780
Deuteranopia (green-blind)
#043E7D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d407e;
/* rgb */ color: rgb(29, 64, 126);
/* oklch */ color: oklch(38.2% 0.113 260.8);
Tailwind
colors: {
  custom: {
    50: '#6874a4',
    500: '#1d407e',
    950: '#000000',
  },
}
SCSS
$custom: #1d407e;
$custom-light: #6874a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d407e",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 218.351,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38229,
    "c": 0.11281,
    "h": 260.8
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#1D407E
secondary
#B18A45
accent
#AB42E6
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1D407E

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

Preview Lab → · Contrast checker → · Palette generator →

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