#1D137E#1D137E

#1D137E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.166 H 273.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#1D137E
RGBrgb(29, 19, 126)
HSLhsl(246, 74%, 28%)
HSVhsv(246, 85%, 49%)
CMYKcmyk(77%, 84.9%, 0%, 50.6%)
CIE-LABlab(16.66, 40.14, -57.23)
CIE-LCHlch(16.66, 69.91, 305.04°)
OKLaboklab(29.94% 0.0114 -0.1655)
OKLCHoklch(29.94% 0.166 273.9)
XYZxyz(4.5042, 2.2329, 19.9282)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D137E #747E13
analogous
#133F7E #1D137E #52137E
triadic
#1D137E #7E1D13 #137E1D
tetradic
#1D137E #7E133F #747E13 #137E52
square
#1D137E #7E133F #747E13 #137E52
split-complementary
#1D137E #7E5213 #3F7E13
monochromatic
#06041B #110B49 #1D137E #291BB3 #3D2CDF

Accessibility & contrast

On white

14.52
#1D137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D137E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D137E#FFFFFF#000000##FFFFFF
##1D137E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d137e;
/* rgb */ color: rgb(29, 19, 126);
/* oklch */ color: oklch(29.9% 0.166 273.9);
Tailwind
colors: {
  custom: {
    50: '#6c55a5',
    500: '#1d137e',
    950: '#000000',
  },
}
SCSS
$custom: #1d137e;
$custom-light: #6c55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d137e",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 245.607,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29942,
    "c": 0.16592,
    "h": 273.9
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#1D137E
secondary
#A8B439
accent
#F037DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D137E

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

Preview Lab → · Contrast checker → · Palette generator →

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