#1D338D#1D338D

#1D338D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.151 H 267.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#1D338D
RGBrgb(29, 51, 141)
HSLhsl(228, 66%, 33%)
HSVhsv(228, 79%, 55%)
CMYKcmyk(79.4%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.42, 25.92, -52.24)
CIE-LCHlch(25.42, 58.32, 296.39°)
OKLaboklab(36.7% -0.0067 -0.1511)
OKLCHoklch(36.7% 0.151 267.5)
XYZxyz(6.4966, 4.5512, 25.7302)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D338D #8D771D
analogous
#1D6B8D #1D338D #3F1D8D
triadic
#1D338D #8D1D33 #338D1D
tetradic
#1D338D #8D1D6B #8D771D #1D8D3F
square
#1D338D #8D1D6B #8D771D #1D8D3F
split-complementary
#1D338D #8D3F1D #6B8D1D
monochromatic
#080E27 #13215A #1D338D #2745C0 #4B67DA

Accessibility & contrast

On white

10.99
#1D338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1D338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D338D
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D338D#FFFFFF#000000##FFFFFF
##1D338D1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1d338d;
/* rgb */ color: rgb(29, 51, 141);
/* oklch */ color: oklch(36.7% 0.151 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c6aaf',
    500: '#1d338d',
    950: '#000000',
  },
}
SCSS
$custom: #1d338d;
$custom-light: #6c6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d338d",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 228.214,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36703,
    "c": 0.15123,
    "h": 267.5
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#1D338D
secondary
#BCA64A
accent
#C73FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D338D

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

Preview Lab → · Contrast checker → · Palette generator →

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