#1D268A#1D268A

#1D268A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.163 H 270.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1D268A
RGBrgb(29, 38, 138)
HSLhsl(235, 65%, 33%)
HSVhsv(235, 79%, 54%)
CMYKcmyk(79%, 72.5%, 0%, 45.9%)
CIE-LABlab(21.88, 33.42, -56.18)
CIE-LCHlch(21.88, 65.37, 300.74°)
OKLaboklab(34.03% 0.001 -0.1627)
OKLCHoklch(34.03% 0.163 270.3)
XYZxyz(5.7857, 3.4818, 24.4070)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D268A #8A811D
analogous
#1D5C8A #1D268A #4B1D8A
triadic
#1D268A #8A1D26 #268A1D
tetradic
#1D268A #8A1D5C #8A811D #1D8A4B
square
#1D268A #8A1D5C #8A811D #1D8A4B
split-complementary
#1D268A #8A4B1D #5C8A1D
monochromatic
#080A25 #121857 #1D268A #2834BD #4955D9

Accessibility & contrast

On white

12.38
#1D268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1D268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D268A
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D268A#FFFFFF#000000##FFFFFF
##1D268A1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d268a;
/* rgb */ color: rgb(29, 38, 138);
/* oklch */ color: oklch(34.0% 0.163 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d61ad',
    500: '#1d268a',
    950: '#000000',
  },
}
SCSS
$custom: #1d268a;
$custom-light: #6d61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d268a",
  "rgb": {
    "r": 29,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 235.046,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3403,
    "c": 0.16267,
    "h": 270.3
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#1D268A
secondary
#BBB148
accent
#DA40E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D268A

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

Preview Lab → · Contrast checker → · Palette generator →

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