#1D338A#1D338A

#1D338A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.4% C 0.147 H 267.4°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#1D338A
RGBrgb(29, 51, 138)
HSLhsl(228, 65%, 33%)
HSVhsv(228, 79%, 54%)
CMYKcmyk(79%, 63%, 0%, 45.9%)
CIE-LABlab(25.15, 24.74, -50.82)
CIE-LCHlch(25.15, 56.52, 295.96°)
OKLaboklab(36.42% -0.0066 -0.1469)
OKLCHoklch(36.42% 0.147 267.4)
XYZxyz(6.2764, 4.4631, 24.5705)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D338A #8A741D
analogous
#1D698A #1D338A #3E1D8A
triadic
#1D338A #8A1D33 #338A1D
tetradic
#1D338A #8A1D69 #8A741D #1D8A3E
square
#1D338A #8A1D69 #8A741D #1D8A3E
split-complementary
#1D338A #8A3E1D #698A1D
monochromatic
#080E25 #122057 #1D338A #2846BD #4966D9

Accessibility & contrast

On white

11.09
#1D338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1D338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D338A
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D338A#FFFFFF#000000##FFFFFF
##1D338A1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1d338a;
/* rgb */ color: rgb(29, 51, 138);
/* oklch */ color: oklch(36.4% 0.147 267.4);
Tailwind
colors: {
  custom: {
    50: '#6c6aad',
    500: '#1d338a',
    950: '#000000',
  },
}
SCSS
$custom: #1d338a;
$custom-light: #6c6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d338a",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 227.89,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3642,
    "c": 0.14706,
    "h": 267.4
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#1D338A
secondary
#BBA448
accent
#C640E8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D338A

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

Preview Lab → · Contrast checker → · Palette generator →

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