#1D3287#1D3287

#1D3287 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.144 H 267.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#1D3287
RGBrgb(29, 50, 135)
HSLhsl(228, 65%, 32%)
HSVhsv(228, 79%, 53%)
CMYKcmyk(78.5%, 63%, 0%, 47.1%)
CIE-LABlab(24.61, 24.25, -49.83)
CIE-LCHlch(24.61, 55.41, 295.95°)
OKLaboklab(35.94% -0.0059 -0.144)
OKLCHoklch(35.94% 0.144 267.6)
XYZxyz(6.0189, 4.2910, 23.4280)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3287 #87721D
analogous
#1D6787 #1D3287 #3D1D87
triadic
#1D3287 #871D32 #32871D
tetradic
#1D3287 #871D67 #87721D #1D873D
square
#1D3287 #871D67 #87721D #1D873D
split-complementary
#1D3287 #873D1D #67871D
monochromatic
#070D22 #121F55 #1D3287 #2845B9 #4764D7

Accessibility & contrast

On white

11.30
#1D3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1D3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3287
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3287#FFFFFF#000000##FFFFFF
##1D32871.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d3287;
/* rgb */ color: rgb(29, 50, 135);
/* oklch */ color: oklch(35.9% 0.144 267.6);
Tailwind
colors: {
  custom: {
    50: '#6b69ab',
    500: '#1d3287',
    950: '#000000',
  },
}
SCSS
$custom: #1d3287;
$custom-light: #6b69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3287",
  "rgb": {
    "r": 29,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 228.113,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3594,
    "c": 0.14413,
    "h": 267.6
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#1D3287
secondary
#B9A346
accent
#C640E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1D3287

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

Preview Lab → · Contrast checker → · Palette generator →

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