#1D297F#1D297F

#1D297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.144 H 270.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1D297F
RGBrgb(29, 41, 127)
HSLhsl(233, 63%, 31%)
HSVhsv(233, 77%, 50%)
CMYKcmyk(77.2%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.50, 27.30, -49.89)
CIE-LCHlch(21.50, 56.87, 298.69°)
OKLaboklab(33.42% 0.0004 -0.1443)
OKLCHoklch(33.42% 0.144 270.1)
XYZxyz(5.1291, 3.3788, 20.4564)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D297F #7F731D
analogous
#1D5A7F #1D297F #421D7F
triadic
#1D297F #7F1D29 #297F1D
tetradic
#1D297F #7F1D5A #7F731D #1D7F42
square
#1D297F #7F1D5A #7F731D #1D7F42
split-complementary
#1D297F #7F421D #5A7F1D
monochromatic
#06091B #12194D #1D297F #2839B1 #4254D4

Accessibility & contrast

On white

12.53
#1D297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D297F
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D297F#FFFFFF#000000##FFFFFF
##1D297F1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d297f;
/* rgb */ color: rgb(29, 41, 127);
/* oklch */ color: oklch(33.4% 0.144 270.1);
Tailwind
colors: {
  custom: {
    50: '#6a62a5',
    500: '#1d297f',
    950: '#000000',
  },
}
SCSS
$custom: #1d297f;
$custom-light: #6a62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d297f",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 232.653,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33421,
    "c": 0.14429,
    "h": 270.1
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#1D297F
secondary
#B2A545
accent
#D242E6
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D297F

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

Preview Lab → · Contrast checker → · Palette generator →

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