#1D418C#1D418C

#1D418C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.132 H 262.7°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#1D418C
RGBrgb(29, 65, 140)
HSLhsl(221, 66%, 33%)
HSVhsv(221, 79%, 55%)
CMYKcmyk(79.3%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.25, 15.83, -45.39)
CIE-LCHlch(29.25, 48.07, 289.23°)
OKLaboklab(39.55% -0.0168 -0.1307)
OKLCHoklch(39.55% 0.132 262.7)
XYZxyz(7.1289, 5.9344, 25.5756)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D418C #8C681D
analogous
#1D788C #1D418C #311D8C
triadic
#1D418C #8C1D41 #418C1D
tetradic
#1D418C #8C1D78 #8C681D #1D8C31
square
#1D418C #8C1D78 #8C681D #1D8C31
split-complementary
#1D418C #8C311D #788C1D
monochromatic
#081227 #122959 #1D418C #2859BF #4A78D9

Accessibility & contrast

On white

9.60
#1D418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1D418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D418C
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D418C#FFFFFF#000000##FFFFFF
##1D418C1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4A8F
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d418c;
/* rgb */ color: rgb(29, 65, 140);
/* oklch */ color: oklch(39.6% 0.132 262.7);
Tailwind
colors: {
  custom: {
    50: '#6b75ae',
    500: '#1d418c',
    950: '#000000',
  },
}
SCSS
$custom: #1d418c;
$custom-light: #6b75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d418c",
  "rgb": {
    "r": 29,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 220.541,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39553,
    "c": 0.13181,
    "h": 262.7
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#1D418C
secondary
#BC9749
accent
#B23FE9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D418C

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

Preview Lab → · Contrast checker → · Palette generator →

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