#1D298C#1D298C

#1D298C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.162 H 269.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#1D298C
RGBrgb(29, 41, 140)
HSLhsl(234, 66%, 33%)
HSVhsv(234, 79%, 55%)
CMYKcmyk(79.3%, 70.7%, 0%, 45.1%)
CIE-LABlab(22.79, 32.23, -55.93)
CIE-LCHlch(22.79, 64.55, 299.95°)
OKLaboklab(34.75% -0.0008 -0.1619)
OKLCHoklch(34.75% 0.162 269.7)
XYZxyz(6.0316, 3.7399, 25.2098)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D298C #8C801D
analogous
#1D608C #1D298C #491D8C
triadic
#1D298C #8C1D29 #298C1D
tetradic
#1D298C #8C1D60 #8C801D #1D8C49
square
#1D298C #8C1D60 #8C801D #1D8C49
split-complementary
#1D298C #8C491D #608C1D
monochromatic
#080B27 #121A59 #1D298C #2838BF #4A59D9

Accessibility & contrast

On white

12.01
#1D298C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1D298C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D298C
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D298C#FFFFFF#000000##FFFFFF
##1D298C1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d298c;
/* rgb */ color: rgb(29, 41, 140);
/* oklch */ color: oklch(34.8% 0.162 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d63af',
    500: '#1d298c',
    950: '#000000',
  },
}
SCSS
$custom: #1d298c;
$custom-light: #6d63af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d298c",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 140
  },
  "hsl": {
    "h": 233.514,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.16192,
    "h": 269.7
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#1D298C
secondary
#BCAF49
accent
#D63FE9
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D298C

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

Preview Lab → · Contrast checker → · Palette generator →

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