#1D2F78#1D2F78

#1D2F78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.127 H 268.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1D2F78
RGBrgb(29, 47, 120)
HSLhsl(228, 61%, 29%)
HSVhsv(228, 76%, 47%)
CMYKcmyk(75.8%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.48, 20.39, -43.85)
CIE-LCHlch(22.48, 48.36, 294.94°)
OKLaboklab(33.95% -0.0038 -0.1265)
OKLCHoklch(33.95% 0.127 268.3)
XYZxyz(4.9122, 3.6498, 18.2113)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F78 #78661D
analogous
#1D5D78 #1D2F78 #391D78
triadic
#1D2F78 #781D2F #2F781D
tetradic
#1D2F78 #781D5D #78661D #1D7839
square
#1D2F78 #781D5D #78661D #1D7839
split-complementary
#1D2F78 #78391D #5D781D
monochromatic
#060A19 #111C47 #1D2F78 #2942A9 #3F5CD1

Accessibility & contrast

On white

12.14
#1D2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F78
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F78#FFFFFF#000000##FFFFFF
##1D2F781.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2f78;
/* rgb */ color: rgb(29, 47, 120);
/* oklch */ color: oklch(33.9% 0.127 268.3);
Tailwind
colors: {
  custom: {
    50: '#6767a0',
    500: '#1d2f78',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f78;
$custom-light: #6767a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f78",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 228.132,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33946,
    "c": 0.12658,
    "h": 268.3
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#1D2F78
secondary
#AC9845
accent
#C444E4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1D2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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