#1D2F8D#1D2F8D

#1D2F8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.156 H 268.5°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#1D2F8D
RGBrgb(29, 47, 141)
HSLhsl(230, 66%, 33%)
HSVhsv(230, 79%, 55%)
CMYKcmyk(79.4%, 66.7%, 0%, 44.7%)
CIE-LABlab(24.38, 28.63, -53.95)
CIE-LCHlch(24.38, 61.08, 297.96°)
OKLaboklab(35.94% -0.0042 -0.1561)
OKLCHoklch(35.94% 0.156 268.5)
XYZxyz(6.3293, 4.2166, 25.6745)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F8D #8D7B1D
analogous
#1D678D #1D2F8D #431D8D
triadic
#1D2F8D #8D1D2F #2F8D1D
tetradic
#1D2F8D #8D1D67 #8D7B1D #1D8D43
square
#1D2F8D #8D1D67 #8D7B1D #1D8D43
split-complementary
#1D2F8D #8D431D #678D1D
monochromatic
#080D27 #131E5A #1D2F8D #2740C0 #4B62DA

Accessibility & contrast

On white

11.39
#1D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1D2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F8D
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F8D#FFFFFF#000000##FFFFFF
##1D2F8D1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d2f8d;
/* rgb */ color: rgb(29, 47, 141);
/* oklch */ color: oklch(35.9% 0.156 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d67af',
    500: '#1d2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f8d;
$custom-light: #6d67af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f8d",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 230.357,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35936,
    "c": 0.15617,
    "h": 268.5
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#1D2F8D
secondary
#BCAA4A
accent
#CE3FE9
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1D2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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