#1D297E#1D297E

#1D297E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.143 H 270.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#1D297E
RGBrgb(29, 41, 126)
HSLhsl(233, 63%, 30%)
HSVhsv(233, 77%, 49%)
CMYKcmyk(77%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.41, 26.92, -49.41)
CIE-LCHlch(21.41, 56.27, 298.58°)
OKLaboklab(33.32% 0.0004 -0.1429)
OKLCHoklch(33.32% 0.143 270.2)
XYZxyz(5.0642, 3.3529, 20.1149)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D297E #7E721D
analogous
#1D5A7E #1D297E #411D7E
triadic
#1D297E #7E1D29 #297E1D
tetradic
#1D297E #7E1D5A #7E721D #1D7E41
square
#1D297E #7E1D5A #7E721D #1D7E41
split-complementary
#1D297E #7E411D #5A7E1D
monochromatic
#06091B #12194C #1D297E #2839B0 #4254D3

Accessibility & contrast

On white

12.57
#1D297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1D297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D297E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D297E#FFFFFF#000000##FFFFFF
##1D297E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d297e;
/* rgb */ color: rgb(29, 41, 126);
/* oklch */ color: oklch(33.3% 0.143 270.2);
Tailwind
colors: {
  custom: {
    50: '#6962a4',
    500: '#1d297e',
    950: '#000000',
  },
}
SCSS
$custom: #1d297e;
$custom-light: #6962a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d297e",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 232.577,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33321,
    "c": 0.1429,
    "h": 270.2
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#1D297E
secondary
#B1A445
accent
#D142E6
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D297E

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

Preview Lab → · Contrast checker → · Palette generator →

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