#1D336B#1D336B

#1D336B is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.7% C 0.102 H 265.2°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#1D336B
RGBrgb(29, 51, 107)
HSLhsl(223, 57%, 27%)
HSVhsv(223, 73%, 42%)
CMYKcmyk(72.9%, 52.3%, 0%, 58%)
CIE-LABlab(22.62, 12.30, -35.29)
CIE-LCHlch(22.62, 37.37, 289.21°)
OKLaboklab(33.73% -0.0085 -0.1013)
OKLCHoklch(33.73% 0.102 265.2)
XYZxyz(4.3434, 3.6900, 14.3904)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D336B #6B551D
analogous
#1D5A6B #1D336B #2E1D6B
triadic
#1D336B #6B1D33 #336B1D
tetradic
#1D336B #6B1D5A #6B551D #1D6B2E
square
#1D336B #6B1D5A #6B551D #1D6B2E
split-complementary
#1D336B #6B2E1D #5A6B1D
monochromatic
#070B18 #101C3B #1D336B #2A4A9B #3962C9

Accessibility & contrast

On white

12.08
#1D336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1D336B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D336B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D336B#FFFFFF#000000##FFFFFF
##1D336B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133A6D
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d336b;
/* rgb */ color: rgb(29, 51, 107);
/* oklch */ color: oklch(33.7% 0.102 265.2);
Tailwind
colors: {
  custom: {
    50: '#646a96',
    500: '#1d336b',
    950: '#000000',
  },
}
SCSS
$custom: #1d336b;
$custom-light: #646a96;
$custom-dark: #000000;
JSON
{
  "hex": "#1d336b",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 223.077,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33726,
    "c": 0.10162,
    "h": 265.2
  },
  "luminance": 0.0369
}

Semantic roles & 50–950 ramp

primary
#1D336B
secondary
#A08644
accent
#B547E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1D336B

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

Preview Lab → · Contrast checker → · Palette generator →

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