#1D258D#1D258D

#1D258D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.168 H 270.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1D258D
RGBrgb(29, 37, 141)
HSLhsl(236, 66%, 33%)
HSVhsv(236, 79%, 55%)
CMYKcmyk(79.4%, 73.8%, 0%, 44.7%)
CIE-LABlab(21.97, 35.14, -57.91)
CIE-LCHlch(21.97, 67.74, 301.25°)
OKLaboklab(34.19% 0.001 -0.1677)
OKLCHoklch(34.19% 0.168 270.4)
XYZxyz(5.9743, 3.5068, 25.5561)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D258D #8D851D
analogous
#1D5D8D #1D258D #4D1D8D
triadic
#1D258D #8D1D25 #258D1D
tetradic
#1D258D #8D1D5D #8D851D #1D8D4D
square
#1D258D #8D1D5D #8D851D #1D8D4D
split-complementary
#1D258D #8D4D1D #5D8D1D
monochromatic
#080A27 #13185A #1D258D #2732C0 #4B55DA

Accessibility & contrast

On white

12.34
#1D258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D258D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D258D#FFFFFF#000000##FFFFFF
##1D258D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d258d;
/* rgb */ color: rgb(29, 37, 141);
/* oklch */ color: oklch(34.2% 0.168 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e60af',
    500: '#1d258d',
    950: '#000000',
  },
}
SCSS
$custom: #1d258d;
$custom-light: #6e60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d258d",
  "rgb": {
    "r": 29,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 235.714,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34191,
    "c": 0.16769,
    "h": 270.4
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#1D258D
secondary
#BCB44A
accent
#DD3FE9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D258D

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

Preview Lab → · Contrast checker → · Palette generator →

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