#1D2F7D#1D2F7D

#1D2F7D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.134 H 268.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#1D2F7D
RGBrgb(29, 47, 125)
HSLhsl(229, 62%, 30%)
HSVhsv(229, 77%, 49%)
CMYKcmyk(76.8%, 62.4%, 0%, 51%)
CIE-LABlab(22.91, 22.38, -46.32)
CIE-LCHlch(22.91, 51.44, 295.79°)
OKLaboklab(34.4% -0.0038 -0.1338)
OKLCHoklch(34.4% 0.134 268.4)
XYZxyz(5.2236, 3.7744, 19.8513)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F7D #7D6B1D
analogous
#1D5F7D #1D2F7D #3B1D7D
triadic
#1D2F7D #7D1D2F #2F7D1D
tetradic
#1D2F7D #7D1D5F #7D6B1D #1D7D3B
square
#1D2F7D #7D1D5F #7D6B1D #1D7D3B
split-complementary
#1D2F7D #7D3B1D #5F7D1D
monochromatic
#060A1A #111C4B #1D2F7D #2942AF #415DD3

Accessibility & contrast

On white

11.97
#1D2F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1D2F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F7D
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F7D#FFFFFF#000000##FFFFFF
##1D2F7D1.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d2f7d;
/* rgb */ color: rgb(29, 47, 125);
/* oklch */ color: oklch(34.4% 0.134 268.4);
Tailwind
colors: {
  custom: {
    50: '#6967a3',
    500: '#1d2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f7d;
$custom-light: #6967a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f7d",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 228.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34403,
    "c": 0.13381,
    "h": 268.4
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#1D2F7D
secondary
#B19C45
accent
#C742E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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