#1D298E#1D298E

#1D298E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.165 H 269.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#1D298E
RGBrgb(29, 41, 142)
HSLhsl(234, 66%, 34%)
HSVhsv(234, 80%, 56%)
CMYKcmyk(79.6%, 71.1%, 0%, 44.3%)
CIE-LABlab(23.00, 32.97, -56.83)
CIE-LCHlch(23.00, 65.71, 300.12°)
OKLaboklab(34.96% -0.001 -0.1646)
OKLCHoklch(34.96% 0.165 269.7)
XYZxyz(6.1804, 3.7994, 25.9936)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D298E #8E821D
analogous
#1D618E #1D298E #491D8E
triadic
#1D298E #8E1D29 #298E1D
tetradic
#1D298E #8E1D61 #8E821D #1D8E49
square
#1D298E #8E1D61 #8E821D #1D8E49
split-complementary
#1D298E #8E491D #618E1D
monochromatic
#080C28 #131A5B #1D298E #2738C1 #4B5ADA

Accessibility & contrast

On white

11.93
#1D298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D298E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D298E#FFFFFF#000000##FFFFFF
##1D298E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d298e;
/* rgb */ color: rgb(29, 41, 142);
/* oklch */ color: oklch(35.0% 0.165 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e63b0',
    500: '#1d298e',
    950: '#000000',
  },
}
SCSS
$custom: #1d298e;
$custom-light: #6e63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d298e",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 233.628,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34962,
    "c": 0.16457,
    "h": 269.7
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#1D298E
secondary
#BDB04A
accent
#D73FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D298E

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

Preview Lab → · Contrast checker → · Palette generator →

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