#1D336C#1D336C

#1D336C is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.103 H 265.4°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#1D336C
RGBrgb(29, 51, 108)
HSLhsl(223, 58%, 27%)
HSVhsv(223, 73%, 42%)
CMYKcmyk(73.1%, 52.8%, 0%, 57.6%)
CIE-LABlab(22.69, 12.70, -35.82)
CIE-LCHlch(22.69, 38.00, 289.53°)
OKLaboklab(33.81% -0.0083 -0.1028)
OKLCHoklch(33.81% 0.103 265.4)
XYZxyz(4.3963, 3.7111, 14.6691)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D336C #6C561D
analogous
#1D5B6C #1D336C #2F1D6C
triadic
#1D336C #6C1D33 #336C1D
tetradic
#1D336C #6C1D5B #6C561D #1D6C2F
square
#1D336C #6C1D5B #6C561D #1D6C2F
split-complementary
#1D336C #6C2F1D #5B6C1D
monochromatic
#060B18 #101C3C #1D336C #2A4A9C #3962CA

Accessibility & contrast

On white

12.05
#1D336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D336C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D336C#FFFFFF#000000##FFFFFF
##1D336C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123A6E
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#00404A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d336c;
/* rgb */ color: rgb(29, 51, 108);
/* oklch */ color: oklch(33.8% 0.103 265.4);
Tailwind
colors: {
  custom: {
    50: '#646a96',
    500: '#1d336c',
    950: '#000000',
  },
}
SCSS
$custom: #1d336c;
$custom-light: #646a96;
$custom-dark: #000000;
JSON
{
  "hex": "#1d336c",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 223.291,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33806,
    "c": 0.10316,
    "h": 265.4
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#1D336C
secondary
#A18744
accent
#B647E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1D336C

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

Preview Lab → · Contrast checker → · Palette generator →

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