#1D298B#1D298B

#1D298B is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.161 H 269.8°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#1D298B
RGBrgb(29, 41, 139)
HSLhsl(233, 65%, 33%)
HSVhsv(233, 79%, 55%)
CMYKcmyk(79.1%, 70.5%, 0%, 45.5%)
CIE-LABlab(22.69, 31.85, -55.47)
CIE-LCHlch(22.69, 63.97, 299.87°)
OKLaboklab(34.65% -0.0007 -0.1606)
OKLCHoklch(34.65% 0.161 269.8)
XYZxyz(5.9582, 3.7105, 24.8233)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D298B #8B7F1D
analogous
#1D608B #1D298B #481D8B
triadic
#1D298B #8B1D29 #298B1D
tetradic
#1D298B #8B1D60 #8B7F1D #1D8B48
square
#1D298B #8B1D60 #8B7F1D #1D8B48
split-complementary
#1D298B #8B481D #608B1D
monochromatic
#080B26 #121A58 #1D298B #2838BE #4959D9

Accessibility & contrast

On white

12.05
#1D298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D298B
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D298B#FFFFFF#000000##FFFFFF
##1D298B1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d298b;
/* rgb */ color: rgb(29, 41, 139);
/* oklch */ color: oklch(34.6% 0.161 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d63ae',
    500: '#1d298b',
    950: '#000000',
  },
}
SCSS
$custom: #1d298b;
$custom-light: #6d63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d298b",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 233.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34648,
    "c": 0.16059,
    "h": 269.8
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#1D298B
secondary
#BBAF49
accent
#D63FE8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D298B

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

Preview Lab → · Contrast checker → · Palette generator →

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