#1D2F87#1D2F87

#1D2F87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.148 H 268.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#1D2F87
RGBrgb(29, 47, 135)
HSLhsl(230, 65%, 32%)
HSVhsv(230, 79%, 53%)
CMYKcmyk(78.5%, 65.2%, 0%, 47.1%)
CIE-LABlab(23.81, 26.31, -51.13)
CIE-LCHlch(23.81, 57.50, 297.23°)
OKLaboklab(35.35% -0.004 -0.1479)
OKLCHoklch(35.35% 0.148 268.5)
XYZxyz(5.8949, 4.0429, 23.3866)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F87 #87751D
analogous
#1D6487 #1D2F87 #401D87
triadic
#1D2F87 #871D2F #2F871D
tetradic
#1D2F87 #871D64 #87751D #1D8740
square
#1D2F87 #871D64 #87751D #1D8740
split-complementary
#1D2F87 #87401D #64871D
monochromatic
#070C22 #121D55 #1D2F87 #2841B9 #475FD7

Accessibility & contrast

On white

11.61
#1D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1D2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F87
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F87#FFFFFF#000000##FFFFFF
##1D2F871.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1d2f87;
/* rgb */ color: rgb(29, 47, 135);
/* oklch */ color: oklch(35.4% 0.148 268.5);
Tailwind
colors: {
  custom: {
    50: '#6b67ab',
    500: '#1d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f87;
$custom-light: #6b67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f87",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 229.811,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3535,
    "c": 0.14792,
    "h": 268.5
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#1D2F87
secondary
#B9A646
accent
#CB40E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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