#1D3188#1D3188

#1D3188 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.147 H 267.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#1D3188
RGBrgb(29, 49, 136)
HSLhsl(229, 65%, 32%)
HSVhsv(229, 79%, 53%)
CMYKcmyk(78.7%, 64%, 0%, 46.7%)
CIE-LABlab(24.43, 25.33, -50.74)
CIE-LCHlch(24.43, 56.71, 296.53°)
OKLaboklab(35.84% -0.0053 -0.1467)
OKLCHoklch(35.84% 0.147 267.9)
XYZxyz(6.0474, 4.2347, 23.7864)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3188 #88741D
analogous
#1D6788 #1D3188 #3F1D88
triadic
#1D3188 #881D31 #31881D
tetradic
#1D3188 #881D67 #88741D #1D883F
square
#1D3188 #881D67 #88741D #1D883F
split-complementary
#1D3188 #883F1D #67881D
monochromatic
#070D23 #121F56 #1D3188 #2843BA #4863D8

Accessibility & contrast

On white

11.37
#1D3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1D3188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3188
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3188#FFFFFF#000000##FFFFFF
##1D31881.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d3188;
/* rgb */ color: rgb(29, 49, 136);
/* oklch */ color: oklch(35.8% 0.147 267.9);
Tailwind
colors: {
  custom: {
    50: '#6b68ac',
    500: '#1d3188',
    950: '#000000',
  },
}
SCSS
$custom: #1d3188;
$custom-light: #6b68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3188",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 228.785,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35836,
    "c": 0.1468,
    "h": 267.9
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#1D3188
secondary
#BAA447
accent
#C840E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1D3188

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

Preview Lab → · Contrast checker → · Palette generator →

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