#1D338E#1D338E

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

Color values

HEX#1D338E
RGBrgb(29, 51, 142)
HSLhsl(228, 66%, 34%)
HSVhsv(228, 80%, 56%)
CMYKcmyk(79.6%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.51, 26.31, -52.71)
CIE-LCHlch(25.51, 58.91, 296.52°)
OKLaboklab(36.8% -0.0067 -0.1525)
OKLCHoklch(36.8% 0.153 267.5)
XYZxyz(6.5713, 4.5811, 26.1239)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D338E #8E781D
analogous
#1D6B8E #1D338E #3F1D8E
triadic
#1D338E #8E1D33 #338E1D
tetradic
#1D338E #8E1D6B #8E781D #1D8E3F
square
#1D338E #8E1D6B #8E781D #1D8E3F
split-complementary
#1D338E #8E3F1D #6B8E1D
monochromatic
#080E28 #13215B #1D338E #2745C1 #4B67DA

Accessibility & contrast

On white

10.96
#1D338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1D338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D338E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D338E#FFFFFF#000000##FFFFFF
##1D338E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1d338e;
/* rgb */ color: rgb(29, 51, 142);
/* oklch */ color: oklch(36.8% 0.153 267.5);
Tailwind
colors: {
  custom: {
    50: '#6d6ab0',
    500: '#1d338e',
    950: '#000000',
  },
}
SCSS
$custom: #1d338e;
$custom-light: #6d6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d338e",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 228.319,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36798,
    "c": 0.15261,
    "h": 267.5
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#1D338E
secondary
#BDA64A
accent
#C83FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1D338E

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

Preview Lab → · Contrast checker → · Palette generator →

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