#1D2F7A#1D2F7A

#1D2F7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.129 H 268.3°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#1D2F7A
RGBrgb(29, 47, 122)
HSLhsl(228, 62%, 30%)
HSVhsv(228, 76%, 48%)
CMYKcmyk(76.2%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.65, 21.19, -44.84)
CIE-LCHlch(22.65, 49.60, 295.29°)
OKLaboklab(34.13% -0.0038 -0.1294)
OKLCHoklch(34.13% 0.129 268.3)
XYZxyz(5.0348, 3.6988, 18.8572)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F7A #7A681D
analogous
#1D5E7A #1D2F7A #3A1D7A
triadic
#1D2F7A #7A1D2F #2F7A1D
tetradic
#1D2F7A #7A1D5E #7A681D #1D7A3A
square
#1D2F7A #7A1D5E #7A681D #1D7A3A
split-complementary
#1D2F7A #7A3A1D #5E7A1D
monochromatic
#060A19 #111C49 #1D2F7A #2942AB #405CD2

Accessibility & contrast

On white

12.07
#1D2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1D2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F7A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F7A#FFFFFF#000000##FFFFFF
##1D2F7A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2f7a;
/* rgb */ color: rgb(29, 47, 122);
/* oklch */ color: oklch(34.1% 0.129 268.3);
Tailwind
colors: {
  custom: {
    50: '#6867a1',
    500: '#1d2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f7a;
$custom-light: #6867a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f7a",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 228.387,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34128,
    "c": 0.12949,
    "h": 268.3
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#1D2F7A
secondary
#AE9945
accent
#C543E5
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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