#1D338F#1D338F

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

Color values

HEX#1D338F
RGBrgb(29, 51, 143)
HSLhsl(228, 66%, 34%)
HSVhsv(228, 80%, 56%)
CMYKcmyk(79.7%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.60, 26.70, -53.18)
CIE-LCHlch(25.60, 59.51, 296.66°)
OKLaboklab(36.89% -0.0067 -0.1538)
OKLCHoklch(36.89% 0.154 267.5)
XYZxyz(6.6467, 4.6113, 26.5210)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D338F #8F791D
analogous
#1D6C8F #1D338F #401D8F
triadic
#1D338F #8F1D33 #338F1D
tetradic
#1D338F #8F1D6C #8F791D #1D8F40
square
#1D338F #8F1D6C #8F791D #1D8F40
split-complementary
#1D338F #8F401D #6C8F1D
monochromatic
#080F29 #13215C #1D338F #2745C2 #4C67DB

Accessibility & contrast

On white

10.92
#1D338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D338F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D338F#FFFFFF#000000##FFFFFF
##1D338F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1d338f;
/* rgb */ color: rgb(29, 51, 143);
/* oklch */ color: oklch(36.9% 0.154 267.5);
Tailwind
colors: {
  custom: {
    50: '#6d6ab1',
    500: '#1d338f',
    950: '#000000',
  },
}
SCSS
$custom: #1d338f;
$custom-light: #6d6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d338f",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 228.421,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36893,
    "c": 0.15399,
    "h": 267.5
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#1D338F
secondary
#BDA74B
accent
#C83FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1D338F

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

Preview Lab → · Contrast checker → · Palette generator →

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