#1D3794#1D3794

#1D3794 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.156 H 266.6°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1D3794
RGBrgb(29, 55, 148)
HSLhsl(227, 67%, 35%)
HSVhsv(227, 80%, 58%)
CMYKcmyk(80.4%, 62.8%, 0%, 42%)
CIE-LABlab(27.10, 25.92, -53.80)
CIE-LCHlch(27.10, 59.72, 295.73°)
OKLaboklab(38.15% -0.0092 -0.1556)
OKLCHoklch(38.15% 0.156 266.6)
XYZxyz(7.2163, 5.1309, 28.6213)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3794 #947A1D
analogous
#1D7394 #1D3794 #3F1D94
triadic
#1D3794 #941D37 #37941D
tetradic
#1D3794 #941D73 #947A1D #1D943F
square
#1D3794 #941D73 #947A1D #1D943F
split-complementary
#1D3794 #943F1D #73941D
monochromatic
#09112E #132461 #1D3794 #274AC7 #4F6EDC

Accessibility & contrast

On white

10.36
#1D3794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1D3794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3794
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3794#FFFFFF#000000##FFFFFF
##1D37941.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d3794;
/* rgb */ color: rgb(29, 55, 148);
/* oklch */ color: oklch(38.1% 0.156 266.6);
Tailwind
colors: {
  custom: {
    50: '#6e6db4',
    500: '#1d3794',
    950: '#000000',
  },
}
SCSS
$custom: #1d3794;
$custom-light: #6e6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3794",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 226.891,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38147,
    "c": 0.15586,
    "h": 266.6
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#1D3794
secondary
#BFA64E
accent
#C43EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1D3794

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

Preview Lab → · Contrast checker → · Palette generator →

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