#1D388E#1D388E

#1D388E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.146 H 266.1°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#1D388E
RGBrgb(29, 56, 142)
HSLhsl(226, 66%, 34%)
HSVhsv(226, 80%, 56%)
CMYKcmyk(79.6%, 60.6%, 0%, 44.3%)
CIE-LABlab(26.85, 22.87, -50.51)
CIE-LCHlch(26.85, 55.45, 294.36°)
OKLaboklab(37.8% -0.01 -0.1459)
OKLCHoklch(37.8% 0.146 266.1)
XYZxyz(6.8016, 5.0418, 26.2006)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D388E #8E731D
analogous
#1D708E #1D388E #3A1D8E
triadic
#1D388E #8E1D38 #388E1D
tetradic
#1D388E #8E1D70 #8E731D #1D8E3A
square
#1D388E #8E1D70 #8E731D #1D8E3A
split-complementary
#1D388E #8E3A1D #708E1D
monochromatic
#081028 #13245B #1D388E #274CC1 #4B6DDA

Accessibility & contrast

On white

10.46
#1D388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1D388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D388E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D388E#FFFFFF#000000##FFFFFF
##1D388E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1d388e;
/* rgb */ color: rgb(29, 56, 142);
/* oklch */ color: oklch(37.8% 0.146 266.1);
Tailwind
colors: {
  custom: {
    50: '#6c6eb0',
    500: '#1d388e',
    950: '#000000',
  },
}
SCSS
$custom: #1d388e;
$custom-light: #6c6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d388e",
  "rgb": {
    "r": 29,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 225.664,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37799,
    "c": 0.14628,
    "h": 266.1
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

primary
#1D388E
secondary
#BDA14A
accent
#C03FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1D388E

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

Preview Lab → · Contrast checker → · Palette generator →

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